Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Menu item icon color showing in gray not showing its orignal colors

I used navigation drawer to design the menu of my app for first time, I change the menu icon by my xml code but the icon in activity is showing like gray overlay i used itemIconTint but it not showing right. My icon have different colors how can i display my icon with all colorsImage1 of menu

My trip icon is showing gray as shown , and after setting itemIconTint all goes to orange color Image 2 of menu

like image 385
Basit Avatar asked Oct 16 '25 10:10

Basit


1 Answers

Try Below code :

Programmatically

yourNavigationView.setItemIconTintList(null);

From XML

<android.support.design.widget.NavigationView
    ...
    app:itemIconTint="@android:color/black" 
    ... />
like image 125
Rohan Lodhi Avatar answered Oct 19 '25 03:10

Rohan Lodhi