I have a custom view derived from a view. I want to be notified when the image is clicked, and the location x, y where the click occurred. The same goes for long clicks.
It looks like I need to override onTouchEvent() . Is there no way to get the x, y location of the event from the OnClickListener instead?
If not, what good way to tell if a motion event is a βrealβ click and a long click, etc.? onTouchEvent generates many events in quick succession, etc.
android
Mark Dec 27 '09 at 21:03 2009-12-27 21:03
source share