I have been stuck on this issue for some days now. Can anyone help me customize the Tabs displayed below the ActionBar (NavigationMode is NAVIGATION_MODE_TABS
) ?
I'm not sure if you need this anymore but I will post the answer for other people to see. You can set this in the background Drawable
of the customActionBarTabStyle
as a Drawable resource:
The resource should be a Selector, something among these lines:
So the resources here are 2 Layer Lists. One for when the tab is inactive, and one for when the tab is selected and active. So you set 2 Layer Lists depending on the selected state.
A single Layer List may look like this:
-
-
Thus the first item is the bottom line that you could define as your underline color of the currently selected Tab, and the second item is the color of the whole tab.