NavigationBar background color

2

I have the following NavigationView

<android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="330dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        app:itemTextColor="@color/HintHomeMonto"
        android:fitsSystemWindows="true"
        app:headerLayout="@layout/nav_header_main"
        app:menu="@menu/activity_main_drawer"
        android:background="@color/white"
        />

When it opens as it is not full screen, the background activity is as shady, I would like it not to be shaded, I do not know what it is called or how to look for it, if someone illuminates me thank you very much.

I mean that when you open the background is opaque that is not occupied by the navigationview this I would like that this opaque is not thanks

    
asked by Bruno Sosa Fast Tag 09.05.2018 в 19:45
source

1 answer

2

To remove the gradient when opening NavigationDrawer , you can use the setScrimColor property that allows you to change the color.

Code:

drawerLayout.setScrimColor(Color.TRANSPARENT);
    
answered by 09.05.2018 / 21:46
source