Styling ActionBarSherlock – change icon of homeupIndicator

Changing home up indicator in action bar Sherlock is very easy. just few lines of code
Here is the step

1)make your application theme something like shown below

<?xml version="1.0" encoding="utf-8"?>

    <style name="MyCustomTheme" parent="Theme.Sherlock">
    <item name="homeAsUpIndicator">@drawable/ic_your_new_home_up_indicator</item>
    <item name="android:homeAsUpIndicator">@drawable/ic_your_new_home_up_indicator</item>

2)Use the theme on application in android manifest file

        android:theme="@style/MyCustomTheme" >
            android:label="app" >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />

That’s all for changing home up icon in Sherlock action bar

hope, Someone will find my post helpful 🙂

4 thoughts on “Styling ActionBarSherlock – change icon of homeupIndicator

  1. Hi:

    Thanks for the post. I am trying to use it but there is an error with:

    It seems that it only works for API 11 or above. Is it any way to make it works with API 10 or lower?

    • It may be due to lint warning errors. so Right click your project and go to android tools and clear lint errors(if you are using eclipse). hope it solves your problem

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s