I have an application that has home activity since I used viewpager, Appcompact Actionbar and drawerLayout. The output of drawerLayout opens in three cases.
- By clicking on the action bar menu.
- Device menu button
- Swipe to the right of the edge.
and closes when
- Clicking on the action bar menu
- Device menu button
- swipe left or click on the fade
I just wanted to disable drawerLayout when passing from the edge.
I used this
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN);
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
these methods disabled both open and closed events,
If any authority has done this, tell me how to disable scrolling to open DrawerLayout.