Disable a color tint in NavigationView only for specified icons

前端 未结 3 1819
遇见更好的自我
遇见更好的自我 2021-02-19 12:29

I need to disable a tint color for some icons in NavigationView because their color define category type. How can I do it?
Below picture shows my problem:
<

3条回答
  •  一个人的身影
    2021-02-19 12:51

    If you want change color of icon on seletion the below is the possible answer:

    Change Navigation View Item Color Dynamicly Android

    Otherwise you can set

    navview.setItemIconTintList(null);

    this will give the original colors of icons. and you can use colored and grey icons as per your requirements.

提交回复
热议问题