Changing the color of a ButtonBarSherlock Button Back?

I am using ActionBarSherlock. I have a displayOption "homeAsUp" in my style.xml file. Now it shows a black arrow next to the name Activity. Since my White theme is on a blue black background, I want to change the color of the black arrow, or perhaps use a new new resource in its place. How can i do this?

Sincerely.

+5
source share
2 answers

In addition to Eric's answer, I spent a lot of time on the right decision.

Remember that these elements must go in the parent theme of the application, inheriting from Theme.Sherlockor the like.

<!-- CUSTOM APP THEME -->
<style name="AppTheme" parent="Theme.Sherlock">
    <item name="android:actionBarStyle">@style/AppTheme.ActionBarStyle</item>
    <item name="actionBarStyle">@style/AppTheme.ActionBarStyle</item>
    <item name="android:homeAsUpIndicator">@drawable/action_bar_ic_ab_back_holo_dark</item>
    <item name="homeAsUpIndicator">@drawable/action_bar_ic_ab_back_holo_dark</item>
</style>

Do not put them in a custom action bar theme that inherits from Widget.Sherlock.ActionBar.

<!-- ACTION BAR THEME -->
<style name="AppTheme.ActionBarStyle" parent="Widget.Sherlock.ActionBar">
    <item name="android:icon">@drawable/action_bar_logo</item>
    <item name="icon">@drawable/action_bar_logo</item>
    <item name="android:displayOptions">showHome</item>
    <item name="displayOptions">showHome</item>
</style>
+15

, ActionBarSherlock!

- (ActionBarSherlock Theming):

- Android Android ​​ . anroid-prefixed , unprefixed - . API- , , , .

, :

<item name="android:homeAsUpIndicator">@drawable/icon</item>

<item name="homeAsUpIndicator">@drawable/icon</item>

, L & F

+2

All Articles