I have created the action bar by
ActionBar actionbar = getActionBar()
The background of the action bar is changed by
actionbar.setBackgroundDrawable(actionBarBackgroundImage);
Now I need to change the action bar tabs underline color programmatically. Is there any method to change the action bar tabs underline color?
try following.
write tabs_selector_green.xml in res/drawable.
write layer_bg_selected_tabs_green.xml in res/drawable folder.
and in java code write this.
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
<item name="colorAccent">@color/Tab_Highlighter</item>
Now give the color for Tab_Highlighter in colors.xml