Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9064811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:20:56+00:00 2026-06-16T16:20:56+00:00

I am using ActionBar Sherlock library. So, to change the default home button. I

  • 0

I am using ActionBar Sherlock library. So, to change the default home button. I did this:

<style name="Theme.mTheme" parent="android:Theme.Sherlock.Light.DarkActionBar">
    <item name="android:homeAsUpIndicator">@drawable/custom_home</item>
</style>

which didn’t work

So, i added this too:

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

now its working. I am having this custom home icon/button on every ActionBar. But in 1 of my Activities i have this in code:

actionBar.setIcon(R.drawable.options_holo_dark);

When i am in that Activity, I can see the icon which i set programatically ie.., options_holo_dark. The 1 which i set in Theme ie.., custom_home is not visible. But the Icon has moved to the Right as if its giving space on the left to the icon i set in theme(though not visible).

This is what i am getting now:

enter image description here

So, how can i avoid that empty space on the left side of the Home Icon?

Thank You

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:20:57+00:00Added an answer on June 16, 2026 at 4:20 pm

    Theme item android:homeAsUpIndicator (and homeAsUpIndicator for ActionBarSherlock) sets drawable for the up icon – that’s the little arrow pointing to left that is displayed next to the app icon when you have called setDisplayHomeAsUpEnabled(true) on the action bar.

    The size of the up drawable defines the left margin for the app icon (logo). By default its dimensions are 16dp x 16dp. If you put there wider drawable the gap between edge of the screen and the app icon would be wider even though the up icon is not displayed at the moment.

    If you want to change the app icon (logo). Use setLogo(int) or setLogo(Drawable) method of ActionBar. Don’t forget to call setDisplayUseLogoEnabled(true) too – this method toggles between displaying app icon and custom logo. Also you can define the logo in manifest in attribute android:logo of <application> and <activity> tags and set in theme that you want to use logo instead of app icon in the action bar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using HoloEveryWhere Library with Holo.Theme.Sherlock.Light as the parent theme. I am also
i'm using the sherlock actionbar library in order to support many devices . i
I am using the Sherlock ActionBar library and I have a SherlockFragmentActivity implementing ActionBar.TabListener
So I'm using Sherlock library to show ActionBar(that needs it in 4.2 and earlier)
I am using Actionbar Sherlock for the first time . What i am trying
I am using Actionbar Sherlock and and i have three buttons Search with a
I am using ActionBarSherlock, in the ActionBar i have this custom layout to appear
So I'm trying to style the tabs of my Actionbar, which I've implemented using
I am using IntelliJ Idea CE (which is incredible) and have included ActionBar Sherlock
I am using ActionBarSherlock Library. In a simple layout i have this code: <?xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.