I have a FiewFlipper
that has ListViews as children. I have looked for a way to intercept touch events for a GestureDetector
before they reach the children - a method to globally intercept touch events over the ViewFlipper.
Extending FiewFlipper and implementing onInterceptTouchEvent (MotionEvent ev)
seemed to be the solution. This works well for most children. However, when the listview begins to scroll, onInterceptTouchEvent stop receiving the events.
I know it's possible to set each listview's OnTouchListener, but this ruins simple hierarchy I'm attempting to create.
As commented by adamp, this behaviour is intentional and does not need to be fought. I applied the gesture listener to the children elements.