Archedius Archedius - 4 months ago 70
Android Question

Disable dark fading in Navigation Drawer

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

Answer

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));