Hello all,
I am using ActionBarSherlock version 4.0.2.
I have tried everything I could but nothing works, I do not succeed to change the theme.
My goal is to user Theme.Sherlock.Light but replace the blue color of the tabs to an orange color. I followed all the instructions to the letter on the site, on the official android documentation, I even tried this tool
http://jgilfelt.github.com/android-actionbarstylegenerator but nothing works.
Here is a sample of my code:
<style name="Theme.Greenthumb" parent="Theme.Sherlock.Light">
<item name="actionBarTabStyle">@style/Widget.Greenthumb.ActionBar.TabView</item>
<item name="android:actionBarTabStyle">@style/Widget.Greenthumb.ActionBar.TabView</item>
</style>
<style name="Widget.Greenthumb.ActionBar.TabView" parent="Widget.Sherlock.ActionBar.TabView">
<item name="android:background">@drawable/tab_indicator</item>
</style>
<!-- Non focused states -->
<item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@android:color/transparent" />
<item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected" />
<!-- Focused states -->
<item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/abs__list_focused_holo" />
<item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_focused" />
<!-- Pressed -->
<!-- Non focused states -->
<item android:state_focused="false" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/abs__list_pressed_holo_dark" />
<item android:state_focused="false" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed" />
<!-- Focused states -->
<item android:state_focused="true" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed" />
<item android:state_focused="true" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed" />
</selector>
In the manifest I have set the theme at the application level.
I am really confused as to what is the problem.
Could anyone give me a clue please?
I thank you very much in advance :)
Yann