Disable dark fading in Navigation Drawer

Archedius picture Archedius · Sep 23, 2013 · Viewed 18.6k times · Source

Is there a way to disable the dark fading effect for the background view in the Navigation Drawer View in Android?

Answer

SocialError picture SocialError · Sep 30, 2013

You can use setScrimColor(int color) method. As default color is used 0x99000000. So if you don't want faded background, set transparent color in this method.

mDrawerLayout.setScrimColor(getResources().getColor(android.R.color.transparent));