Change color of Navigation Drawer Icon in Android Studio default template

前端 未结 9 998
北恋
北恋 2020-12-13 05:52

The new default Navigation Drawer Activity template in Android Studio

defines its titles and icons in a menu file activity_main_drawer like thi

9条回答
  •  心在旅途
    2020-12-13 06:09

    Based on @MD's comment, all I needed to do was add:

    app:itemIconTint="@color/my_desired_colour"
    

    to NavigationView (it is located in activity_main.xml layout file) The default tint is black but you can use an even darker shade of black by using #000000

     
    

提交回复
热议问题