How to change the text color of the navigation drawer?

0

As I do to change the color of the text, I already tried to add textcolor in the menu's XML and it does not work

    
asked by anonymous 25.05.2017 / 19:50

1 answer

2

To solve the problem, go to your activity_main.xml

<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/navigation_drawer_header"
app:menu="@menu/menu_drawer"
android:background="@color/color_navigation_list_background"
app:itemIconTint="@color/color_selector_navigation_item"
app:itemTextColor="@color/color_selector_navigation_item"/>

and in the field app: itemTextColor you can put the color that is in colors.xml

app:itemTextColor="@color/color_selector_navigation_item"

or

app:itemTextColor="#fff"
    
25.05.2017 / 20:21