disable the swipe gesture that opens the navigation drawer in android
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.