Sunary
Sunary

Reputation: 121

How can I detec event double tap in android

How can I detect event double tap in position (x,y) in android?

Upvotes: 1

Views: 758

Answers (3)

Brian
Brian

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

Peter Knego
Peter Knego

Reputation: 80340

Use GestureDetector and register for double-tap events via setOnDoubleTapListener(..).

Upvotes: 0

Related Questions