I’m facing a problem that is making my head explode. Basically I have a FrameLayout that recognizes double taps and that contains a vertical ScrollView. The problem is that when I double tap on the ScrollView, the event is not propagated to the FrameLayout. If the FrameLayout is empty, double tap is recognized correctly.
I already tried subclassing the ScrollView and returning false from the onTouchEvent method: the double tap event is recognized by the FrameLayout but the ScrollView doesn’t scroll anymore.
Any help is appreciated.
Thanks!
Intercept the touch by overriding
ViewGroup.onInterceptTouchEvent(MotionEvent ev)in theFrameLayoutand return true if the event was handled so it isn’t passed down or false if you want theScrollViewto handle the event.