I has the following class that represents a View that is touchable and draw a Slide Bar.
public class SlideBar extends View {
private int progress;
private i
An ACTION_CANCEL happens when a parent view takes over control of one of its children views.
Take a look at the documentation around ViewGroup.onInterceptTouchEvent(MotionEvent) method. From the link:
onTouchEvent() method to handle; this means you should implement onTouchEvent() to return true, so you will continue to see the rest of the gesture (instead of looking for a parent view to handle it). Also, by returning true from onTouchEvent(), you will not receive any following events in onInterceptTouchEvent() and all touch processing must happen in onTouchEvent() like normal.onTouchEvent().ACTION_CANCEL, and all further events will be delivered to your onTouchEvent() method and no longer appear here