Change tabs text color in TabLayout to different colors programmatically

后端 未结 5 796
刺人心
刺人心 2021-01-18 14:02

I have 7 dates tabs in my screen, when tab selected, the text is black in color; while other select-able tabs are white in color. If the date falls on another month, I want

5条回答
  •  余生分开走
    2021-01-18 14:06

    Create a style in style.xml and call in xml layout like below

     
    
        
    

    Call here

    
    

提交回复
热议问题