Change color of Navigation Drawer Icon in Android Studio default template

前端 未结 9 989
北恋
北恋 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:26

    Based on @ojonugwa ochalifu and @MD's comment,

    You can achieve by writing app:itemIconTint but if you write this, the navigation drawers icon color will also be changed. The simple and easy solution that I found after lots of R&D is that you have define #FFE730 in theme of AppBarLayout or if you using Toolbar only without AppBarLayout, you can also write #FFE730 in theme or popupTheme of Toolbar in your xml.

    This will also change the color of activity's back arrow as well.

    Hope this helps you all who are facing this type of issue.

提交回复
热议问题