I am working through debugging some touch handling stuff on Android, and am trying to figure out why the MotionEvent sent to my View\'s onTouchListener
contains a <
All you need is to call
requestDisallowInterceptTouchEvent(true);
on the parent view, like this -
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
view.getParent().requestDisallowInterceptTouchEvent(true);
switch(motionEvent.getActio){
}
return false;
}
Source: onInterceptTouchEvent, onTouchEvent only see ACTION_DOWN