Reputation: 121
How can I detect event double tap in position (x,y) in android?
Upvotes: 1
Views: 758
Reputation: 3558
I think using gesture detector class and overriding onDoubleTap(MotionEvent e) should work.
Get the x and y coordinates from the MotionEvent.
Upvotes: 0
Reputation: 80340
Use GestureDetector
and register for double-tap events via setOnDoubleTapListener(..)
.
Upvotes: 0
Reputation: 488
You can use onDoubleTapListener: http://developer.android.com/reference/android/view/GestureDetector.OnDoubleTapListener.html
Upvotes: 1