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.
More Related Contents:
- Same Navigation Drawer in different Activities
- Android Navigation Drawer on top ActionBar
- Separate Back Stack for each tab in Android using Fragments
- Android – iphone style tabhost [closed]
- Is it possible to create turn-by-turn GPS navigation app on Android/iOS using Google Maps?
- Use Tab with new ToolBar (AppCompat v7-21)
- Is there a way to keep fragment alive when using BottomNavigationView with new NavController?
- Actionbarsherlock + tabs + multi fragments?
- Android – Switch Tabs from within an Activity within a tab
- Tab not taking full width on Tablet device [Using android.support.design.widget.TabLayout]
- Handling back button in Android Navigation Component
- how to change the color of the tabs indicator text in android?
- Android ViewPager get the current View
- Android – Google Play like tabs
- TabLayout Tab Title text in Lower Case
- Gesture detection and ScrollView issue
- Is it possible to change actionbar tab indicator programmatically
- Remove line break in TabLayout
- How do I change the background of an Android tab widget?
- How to generate zoom/pinch gesture for testing for Android
- How to make an Android view that flips between views on swipe/fling
- Change Actionbar height on Android JellyBean
- how to implement both ontouch and also onfling in a same listview?
- onTabSelected Selected Not Called
- Android Navigation Drawer over the tabs
- How do I implement swiping between tabs on Android?
- How to use camera flash/led as torch on a Samsung Galaxy Tab?
- Android TextView Linkify intercepts with parent View gestures
- Creating a method using Haversine Formula, Android V2
- Navigation Architecture Component- Passing argument data to the startDestination