I\'ve integrated Bottom Bar Navigation bar on my app. But when I swipe, tab\'s color doesn\'t change. It\'s weird cause I have selector file. Any idea to solve this problem?
I was confused about whole process despite reading all the answers, so here is how I resolved it step by step so beginners can understand it properly
Let's say you created MainActivity
with bottom navigation so
in your drawable
folder create bottom_navigation_selector.xml
then go to the activity_main.xml
layout and add this line in BottomNavigationView
app:itemIconTint="@drawable/bottom_navigation_selector"
If you also want to change text color accordingly then you need to add this line aswell
app:itemTextColor="@drawable/bottom_navigation_selector"