I've been following the navigation drawer guide by Google and I'd like to add it to an Activity with tabs and gestures.
I'd like to disable the gesture to open the navigation drawer, does anyone have any idea how to do this?
You should use:
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
It worked for me, the swipe to open the drawer was disabled.
If it still won't work, check out the answer provided here.
2.1m questions
2.1m answers
60 comments
57.0k users