Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't Dim Main Content When DrawerLayout Is Visible?

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?

like image 937
Brian White Avatar asked Feb 12 '14 04:02

Brian White


People also ask

What is a DrawerLayout?

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.

What is navigation drawer activity in Android?

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.


1 Answers

Try using drawerLayout.setScrimColor(Color.TRANSPARENT);

like image 186
Karakuri Avatar answered Sep 30 '22 13:09

Karakuri