BottomNavigationBar-change the tab icon color

前端 未结 4 686
太阳男子
太阳男子 2021-01-07 18:48

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?

4条回答
  •  执笔经年
    2021-01-07 19:13

    Change to app:itemIconTint="@drawable/selector"

    Also change your selector.xml to this:

    
    
    
    
    
    

提交回复
热议问题