确定在Android中点击的图片区域? [英] Identifying image area clicked in Android?
本文介绍了确定在Android中点击的图片区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在Android应用程序中确定ImageView的哪个区域(例如x,y坐标)被用户点击?感谢。
Is there a way to determine in an Android app which area of an ImageView (x,y coordinates, for instance) was clicked by a user? Thanks.
推荐答案
Checkout MotionEvent 和此其他问题
Checkout MotionEvent and this other question
这篇关于确定在Android中点击的图片区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文