Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't display the overlay with the Android Navigation Drawer

I was wondering if it's possible to remove the automatic overlay made by the recently implemented Navigation Drawer ? (The grey layer on the second picture)

enter image description here

like image 683
grena Avatar asked Aug 08 '13 15:08

grena


1 Answers

You just need to set setScrimColor(int color) to your DrawerLayout :

mDrawerLayout.setScrimColor(Color.WHITE);
// OR
mDrawerLayout.setScrimColor(Color.TRANSPARENT);

Here is the official documentation from Android API: DrawerLayout - setScrimColor().

Hope this solves your problem! : )

like image 145
hardartcore Avatar answered Sep 20 '22 18:09

hardartcore