10

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?

Brian White
  • 8,332
  • 2
  • 43
  • 67

1 Answers1

19

Try using drawerLayout.setScrimColor(Color.TRANSPARENT);

Karakuri
  • 38,365
  • 12
  • 84
  • 104