I have an app that overrides the onTouchEvent(MotionEvent ev)
of the MainActivity
to determine Two-Finger-Swipe
and Pich-Open
A bit of a late update, but after having this issue for a couple of days, the solution that worked best for me was creating a CustomDrawerLayout. Then, casting the Context from the constructor as an Activity, called the Activity onTouchEvent from onInterceptTouchEvent.
@Override public boolean onInterceptTouchEvent( MotionEvent ev )
{
getActivity().onTouchEvent( ev );
return super.onInterceptTouchEvent( ev );
}
I find the code to be a lame hack... but works for me. Good luck!