I\'m adding a BottomNavigationView
to a project, and I would like to have a different text (and icon tint) color for the selected tab (to achieve greying out no
I am using a com.google.android.material.bottomnavigation.BottomNavigationView
(not the same as OP's) and I tried a variety of the suggested solutions above, but the only thing that worked was setting app:itemBackground
and app:itemIconTint
to my selector color worked for me.
My color/tab_color.xml
uses android:state_checked
and I am also using a selected state color for color/bottom_navigation_text_color.xml
Not totally relevant here but for full transparency, my BottomNavigationView
style is as follows: