How to change the color of the navigation Drawer text?

Asked

Viewed 753 times

0

How do I change the color of the text , I’ve tried adding textcolor in the XML menu and but it doesn’t work enter image description here

1 answer

2


To solve the problem it is simple to 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 app:itemTextColor field you can put the color that is in Colors.xml

app:itemTextColor="@color/color_selector_navigation_item"

or

app:itemTextColor="#fff"
  • Friend , is the color of the text , not the background , I managed to add the line

  • 1

    app:itemTextColor="@color/color_selector_navigation_item"

  • a foi mal kkkk confudi com uma outra postagem semelhante que tinha salvo para responder, but this is it to change the color of the text is just below as the colors of the icons also.

  • I saw kkk worth

  • Corrected the answer :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.