Selected tab's color in Bottom Navigation View

前端 未结 10 1998
故里飘歌
故里飘歌 2020-11-28 03:47

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

10条回答
  •  没有蜡笔的小新
    2020-11-28 04:06

    1. Inside res create folder with name color (like drawable)

    2. Right click on color folder. Select new-> color resource file-> create color.xml file (bnv_tab_item_foreground) (Figure 1: File Structure)

    3. Copy and paste bnv_tab_item_foreground

    
    

    bnv_tab_item_foreground:

     
        
            
            
        
    

    Figure 1: File Structure:

提交回复
热议问题