Disable color cast in NavigationView for specified icons only

I need to turn off the hue color for some of the icons in the NavigationView , because their color determines the type of category. How can I do it?
Below is my problem:
enter image description here

+5
source share
3 answers
 navview.setItemIconTintList(null); 

Good luck

+5
source

If you want to change the color of the icon on the screen, below is a possible answer:

Change Review Color View Product Color Dynamically Android

Otherwise, you can install

navview.setItemIconTintList(null);

This will give the original colors of the icons. and you can use color and gray icons to suit your requirements.

+2
source
  Menu menuNav = navigationView.getMenu(); MenuItem menuItem = menuNav.findItem(R.id.nav_subjects); // Disable a tint color menuItem.setChecked(false); 

I hope he answers your question.

0
source

Source: https://habr.com/ru/post/1246295/


All Articles