I want to implement the following behavior:
When the user starts to single-tap my View
, highlight the View
. When the user finishes the single-tap (releases the touch),stop highlighting the View. Just like with simple Button
s.
I tried to achive this with the onShowPress
and onSingleTapConfirmed
methods of SimpleOnGestureListener
. Unfortunately, onShowPress
does not get called at single-taps, but only at double-taps. How can i implement the desired behavior?
Thanks in advance!