See here what i mean
Hi, I\'m using stock Navigation drawer v4 and i ask how can delete that background shadow when navigation drawer is open.
this is my cod
I find the solution :D
mDrawerLayout.setScrimColor(getResources().getColor(android.R.color.transparent));
Adding this in MainActivity.java
You can use the setDrawerShadow method to point to a transparent drawable:
navigationDrawer.setDrawerShadow(R.drawable.someDrawable, GravityCompat.START);
This is works for me in androidX
/*Navigation drawer with transparent background*/
drawerLayout.setScrimColor(getResources().getColor(android.R.color.transparent));
/*Remove navigation drawer shadow/fadding*/
drawerLayout.setDrawerElevation(0);