Ad
I Have Some Problems With DrawerLayout
I'm working with DrawerLayout in my program, and my program has only one activity, and many fragments. When I open new fragment how can I block DrawerLayout, and when I close the fragment(back to HomePage) how can I unblock the DrawerLayout, please help me choose correct way?
Ad
Answer
Please lock it with
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
and unlock with
DrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
Ad
source: stackoverflow.com
Related Questions
- → should I choose reactjs+f7 or f7+vue.js?
- → Phonegap Android write to sd card
- → Local reference jquery script in nanohttpd (Android)
- → Click to navigate on mobile devices
- → How to allow api access to android or ios app only(laravel)?
- → Access the Camera and CameraRoll on Android using React Native?
- → React native change listening port
- → What is the default unit of style in React Native?
- → Google play market autocomplete icon
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → Using Laravel with Genymotion
- → react native using like web-based ajax function
- → react native pdf View
Ad