Navigation drawer item icon not showing original colour

前端 未结 9 2199
一个人的身影
一个人的身影 2020-11-28 18:46

I\'m trying to show an icon next to an item within my menu for my navigation drawer, but for some reason the icon always appears in grey rather than the original colour (bro

9条回答
  •  Happy的楠姐
    2020-11-28 19:12

    Use

        mNavigationView.setItemIconTintList(null);
    

    it's right. Also If all your icons in one color scheme (i had all white) you can setup through xml file - app:itemIconTint="@android:color/white"

    My case:

    
    

提交回复
热议问题