When using a DrawerLayout in Android, opening a drawer causes the main content area to be darkened. Is there any way to avoid this so the main content stays equally visible while the drawer is out?
DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from one or both vertical edges of the window.
The navigation drawer is a UI panel that shows your app's main navigation menu. The drawer appears when the user touches the drawer icon in the app bar or when the user swipes a finger from the left edge of the screen.
Try using drawerLayout.setScrimColor(Color.TRANSPARENT);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With