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:
NavigationView
navview.setItemIconTintList(null);
Good luck
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
This will give the original colors of the icons. and you can use color and gray icons to suit your requirements.
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.
Source: https://habr.com/ru/post/1246295/More articles:Cross call working with Mail but not preflight - jqueryHow to convert JSON to String in ios Swift? - jsonBeehive Find the beginning and end of a group or change point - sqlResolving sslv3 crash failure while trying to use a client certificate - curlDoes youtube v3 Data api have the number of identifiers you can send to video.list? - javascriptHow to restart Angular 2 application after user logout - angularGetting a touch in the local coordinates of the element being transformed - javascriptWhy is this row counting program slow in Java? Using MappedByteBuffer - javaBiMap / 2-way hashmap in Kotlin - kotlinThe maximum number achieved by converting two neighboring x to one (x + 1) - algorithmAll Articles