I would like to define an ImageView in Xml, and then listen to gestures which occur only on that ImageView. But, it appears that the co开发者_运维知识库nstructor for GestureDector requires an Activity as a parameter, and then responds to gesture events on all components in that Activity. Is there any way to limit this such that events are only generated for gestures upon the pre-defined ImageView?
Thank you
extend ImageView
and make it implement OnGestureListener
`
精彩评论