I am using Drawer Layout on my application's home screen to provide some menu options. when drawer opens I want to add some gradient or some invisibility to background activity. How can I do that?
I have used below two methods but it wont work and visibility od main screen remains same
From both methods screen behind NavigationDrawer is clearly visible, I want to blur it so that it's visible but not clear
You can try to use
_drawerLayout.setScrimColor(Color.argb(128, 255, 255, 255));
you can create custom color with an opacity