Inside the onTouch event callback, add an if or case statement to the one that checks
(me.getAction == MotionEvent.ACTION_CANCEL) similar to this:
else if (me.getAction() == MotionEvent.ACTION_CANCEL){ Log.i(myTag, "Action Cancel");
It has been a long time since I worked on this, but I know that I needed to solve this problem at some point, and, looking now, I think that this is what I had to do to make its working, He will continue to receive callbacks while the list scrolls, but the action on them must be undone. Therefore, if you configured some type of if or switch / case that checks action_cancel and does nothing when it is true, from the point of view of users, onTouch will βignoreβ the events that occur during scrolling.
source share