So I'm trying to style my tabs of my ActionBar, that I've implemented using the ActionbarSherlock library. I've managed to style the bar with the icons itself, but not the tabs below it. Does anybody have any idea what is preventing me from doing this? This is my code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CustomStyleTostrams" parent="Theme.Sherlock.Light">
<item name="actionBarTabStyle">@style/customActionBarStyle</item>
<item name="android:actionBarTabStyle">@style/customActionBarStyle</item>
</style>
<style name="customActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
<item name="background">@drawable/bg_tabs_image</item>
<item name="android:background">@drawable/bg_tabs_image</item>
</style>
</resources>
UPDATE: So I figured something out. I'm using the standard TabManager (implementing TabHost.OnTabChangedListener) with a TabWidget, which for some reason does not work with the normal styling. I tested my code above by copying the "ABS: Styled" sample. However, I don't know how I would implement onTabSelected and onTabUnSelected for example. What is the best way to do this? Using the ABS: Styled sample, or to try and style TabWidget in a different way?