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?
Asked
Active
Viewed 2,710 times
1 Answers
19
Try using drawerLayout.setScrimColor(Color.TRANSPARENT);

Karakuri
- 38,365
- 12
- 84
- 104
-
1That's exactly it, thanks! I searched for "dim", "darken", "transp", etc. ???scrim??? – Brian White Feb 12 '14 at 04:31
-
For the curious who have never heard of "scrim" before: http://en.wikipedia.org/wiki/Scrim_(material) – Brian White Feb 12 '14 at 15:33