I am using navigation view , I want to put different colored icons for different items for unselected items and white colored icon for selected item.
I am using menu for items, I have seen below example for could not apply for my problem
Different select colors for different list view items
Thank you
You can add different colored icon into drawable directory.
Remove navigation default color on icons by programmatically
mNavigationView.setItemIconTintList(null);
By XML
<android.support.design.widget.NavigationView
...
app:itemIconTint="null"
... />
To set white Color on selected item
Create drawable resource file under drawable directory with Selector and add below code.
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:color="@android:color/white"/>
<item android:state_checked="false" android:color="Your color" />
</selector>