سؤال

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?

هل كانت مفيدة؟

المحلول

Try using drawerLayout.setScrimColor(Color.TRANSPARENT);

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top