Using this
mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() { @Override public boolean onSingleTapUp(MotionEvent e) { return true; }
Defines only one tap event, i.e. quick shutdown and shutdown. If I held on and then let go, onSingleTapUp not called.
I am looking for a motion event that ACTION_UP after hold.
I looked at onShowPress , which is called when the user performs a top-down action, but then I was not sure how to determine ACTION_UP while in onShowPress .
Please note that this is for a recycler view for clicks. At the moment, I can select one element that works, but if I hold it and then release it, it is not called.
android android-event android-recyclerview android-gesture
Ersen osman
source share