Difference between onSingleTapConfirmed and onSingleTapUp
According to the GestureDetector.SimpleOnGestureListener
documentation,
onSingleTapConfirmed
Notified when a single-tap occurs.
Unlike
onSingleTapUp(MotionEvent)
, this will only be called after the detector is confident that the user's first tap is not followed by a second tap leading to a double-tap gesture.
onSingleTapUp
Notified when a tap occurs with the up MotionEvent that triggered it.
I think the onClick
method is similar to onSingleTapConfirmed
.