D
D
dimasik1002002018-02-25 15:22:30
Java
dimasik100200, 2018-02-25 15:22:30

How to correctly change the color of the selected menu item (icon) in the bottom navigation view?

I included bottom navigation in my application and connected selector to it.
app:itemIconTint="@drawable/bottom_menu_selector"

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!--state is enabled and checked-->
    <item android:state_checked="true" android:color="@color/colorBlack" />
    <item android:color="@color/colorLigtGrey" />
</selector>

However, the colors are still distorted at startup. A light version of the color specified in the selector appears. (dark gray appears instead of black, etc.) How can I fix this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question