Navigation Drawer - Change color menu

1

Hello, I'm implementing a navigation drawer in my android application and for a design issue I would like to know how to change the background color of the activity_home_drawer, where are the menu items?

    
asked by anonymous 07.09.2017 / 16:52

1 answer

1

go in the xml of your main activity!

   design.widget.NavigationView


    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    app:theme="@style/NavigationDrawerStyle"
    app:itemTextColor="#f8f7fc"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    android:background="#7CFC00" (aqui muda o cor)
    app:itemIconTint="#f8f7fc"
    app:headerLayout="@layout/nav_header_main"
    app:menu="@menu/main_drawer"/>
    
08.10.2017 / 19:14