Reputation: 712
i'm trying to change the tint of each icon in a navigation drawer individually with no success. I have tried :
<item
android:id="@+id/nav_contacts"
android:icon="@drawable/ic_emergency"
app:itemIconTint="@color/colorPrimary"
android:title="@string/emergency_contacts" />
which does not work, any ideas ?
Upvotes: 0
Views: 1097
Reputation: 5269
you can set like this:
navigationView.getMenu()
.findItem(R.id. navigation_item_1)
.getIcon()
.setColorFilter(Color.parseColor("#b69260"), PorterDuff.Mode.SRC_ATOP);
Upvotes: 2