Changing ActionBar tabs underline color programmatically

后端 未结 8 1897
误落风尘
误落风尘 2020-12-01 18:28

I have created the action bar by

ActionBar actionbar = getActionBar()

The background of the action bar is changed by

acti         


        
8条回答
  •  暖寄归人
    2020-12-01 18:36

    Got the solution for changing the Tab Highlighter Color after 1 long day of search.Just 2 lines of code makes this work perfect!

    Go to values/styles.xml and add the code below in ActionBar Theme

    @color/Tab_Highlighter

    Now give the color for Tab_Highlighter in colors.xml

    #ffffff
    

提交回复
热议问题