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.
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.