Question

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?

Était-ce utile?

La solution

Try using drawerLayout.setScrimColor(Color.TRANSPARENT);

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top