Closed albert0m closed 5 years ago
To open drawer
drawer.openDrawer(Gravity.START); // Open left drawer
drawer.openDrawer(Gravity.END); // Open right drawer
To close drawer
drawer.closeDrawer(Gravity.START); // Close left drawer
drawer.closeDrawer(Gravity.END); // Close right drawer
To disable swipe gesture
drawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN, leftDrawerView);
For more solution on disable swipe, you may refer on link below https://stackoverflow.com/questions/17025957/disable-gesture-listene
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I want to open the drawer programmatically and not have the user swipe from left or right. Is there any way to do that? Thank you