I have an instance where I need a GestureDetector
in my Activity
to intercept horizontal flings. This activity also happens to contain a DrawerLayout
.
The problem I'm having is that the DrawerLayout
intercepts all touch events such that I can't even requestDisallowInterceptTouchEvents
. I can't seem to ever get a touch even in the Activity to trigger that call.
I'd like the Drawer to handle swipes from the edge when closed, and from anywhere when opened, like it's supposed to. ButI need my activity to be able to intercept touch events elsewhere when the drawer is closed.