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

  • SEARCH
  • Home
  • 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 7795431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:04:04+00:00 2026-06-01T23:04:04+00:00

I added Sherlock library to my project and I added required classes and codes

  • 0

I added Sherlock library to my project and I added required classes and codes to my project. When I test it, action bar appears only in android 4 emulator. When I try it in 2.1 emulator, Actionbar does not appear. Can you give some suggestions how can I fixed it?
I set my target 15 for both sherlock library and my project.

  • 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-01T23:04:05+00:00Added an answer on June 1, 2026 at 11:04 pm

    You need to have done the following:

    Set the min and target SDK levels appropriately

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" />
    

    Changed your Activity‘s to SherlockActivity‘s, and Fragment‘s to SherlockFragment‘s

    Set your theme to either one of your own that has a parent of, or is the direct theme Theme.Sherlock or one of its child themes e.g. Theme.Sherlock.Light

    Finally; the ABS styles mirror those of the native action bar therefore you need to define each style element twice. For example:

    <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
        <item name="background">@drawable/blue_gradient</item>
        <item name="android:background">@drawable/blue_gradient</item>
    
        <item name="displayOptions">useLogo|showHome</item>
        <item name="android:displayOptions">useLogo|showHome</item>
    
        <item name="icon">@drawable/actionbar_logo</item>
        <item name="android:icon">@drawable/actionbar_logo</item>       
    
        <item name="backgroundSplit">@drawable/bg_striped_split</item>
        <item name="android:backgroundSplit">@drawable/bg_striped_split</item>
    </style>
    

    Edit: I did a video tutorial towards getting started too: http://www.youtube.com/watch?v=4GJ6yY1lNNY

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

Sidebar

Related Questions

My own project is using Android 2.1 API 7 . To implement action bar,
I am using ActionBarSherlock to implement action bar on my Android 2.1 API 7
I included ActionBarSherlock as a library. Added this in manifest.xml: <application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/Theme.Sherlock>
I added the service reference in my project and it has created all required
I added a jar file to the lib folder in android project in Eclipse
I added a custom install action to my installer to add one of my
Added an image from android market. I would like to know how can we
I added this code to the head but when I try to post something
I added 32-bit android adk to eclipse(Classic, Indigo, Version: 3.7.0 Build id: I20110613-1736) in
I added the QuartzCore framework to my ios 5.0 project and then tried [self

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.