I have a top level ViewGroup, which I call SliderView, in which I want to detect swiping. This is mostly working, but one weird failure persists.
The essence of Sli
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; }