Skip to content
Advertisement

How to set text color of bottom navigation item selection and unselection?

I was trying to set the following attribute of BottomNavigationView widget

JavaScript

But this sets the text color of active and inactive item both. I want to have different text color on active and inactive item of BottomNavigationView.

Advertisement

Answer

First, you have to make a selectable color in res>color>selectable_color

JavaScript

Then you have to set this selectable color as itemTextColor in BottomNavigationView widget

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement