Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How remove tint color of drawables in NavigationView?

I have a NavigationView which has some items and each item has title and Drawable.

My images are like this one:

https://cdn0.iconfinder.com/data/icons/Social_Network_Icons_gloss/350/Twitter-px.png

But NavigationView add a blue tint color to it.

How can i remove tint color from NavigationView programmatically ?

like image 895
Taylor Avatar asked Dec 20 '22 01:12

Taylor


1 Answers

Just pass null to setItemIconTintList:

mNavigationView = (NavigationView) findViewById(R.id.nav_view);
mNavigationView.setItemIconTintList(null);
like image 121
Saeed Masoumi Avatar answered Jan 10 '23 15:01

Saeed Masoumi