Question Detail

How to show colorful icon in Navigation drawer Android?

6 years ago Views 1428 Visit Post Reply

I am using Default NavigationDrawer Activity in Android.Every Menu has an icon that i have set a colorful icon but when I execute it. It will show me only silver color icons. How can I show icon's original Color?

I have nothing change just using PNG Image for Icons.


Thread Reply

Anonymous

- 6 years ago

Force NavigationView to stop tinting the icons in Your activity

NavigationView n_view = (NavigationView) findViewById(R.id.n_view);
n_view .setItemIconTintList(null);