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 9109607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:04:59+00:00 2026-06-17T03:04:59+00:00

I am trying to implement the ActionBar in a Mono Android application. Could someone

  • 0

I am trying to implement the ActionBar in a Mono Android application. Could someone provide me steps to including the ActionBar project in my solution? I have seen the sample projected provided at this url
https://github.com/xamarin/monodroid-samples/tree/master/ActionBarSherlock

Do I have to simply add a reference of the ActionBarSherlock project in that sample? When I attempt to add a reference to that project I get many errors such as “Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Holo.Widget.ActionBar.Menu’.” in file abs_styles.xml

Has anyone else successfully added ActionBarSherlock to a Mono Android Project? Could you please provide me steps to get a simple example working?

  • 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-17T03:05:01+00:00Added an answer on June 17, 2026 at 3:05 am

    Ok, this is how I got it working…

    1. Open up the sample project and build just the ‘ActionBarSherlock’ project on Release mode. Make sure that the minimum target android version is 4.0.3 (required)

    2. Take the dll and reference it in your project. I have found that you can get it to compile fine if your project has a minimum android version of 2.2 – I found that if you used profile version 2.1 it doesn’t work, but that just might of been my app. Maybe your minimum version is too low? I also set my ‘target’ android to be the latest… I don’t know if this helps too.

    3. The reason I say to reference the dll instead of the project is that you will get the correct intellisense. Otherwise as you can see in the example project it does not (Makes working on it a pain!).

    4. Make sure you have a reference to the v4 support lib in your project (Mono.Android.Support.v4)

    5. The final step is that need to change your default theme to use a Sherlock theme. (see xml below for example)

    6. Use the ActionbarSherlock.* namespaces when adding Actionbars etc…

    Example manifest after adding ActionbarSherlock:

    <manifest ...>
        <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />
        <application android:label="IDNT" android:theme="@style/Theme.Sherlock.Light.DarkActionBar" android:icon="@drawable/Icon">
        </application>
    </manifest>
    

    BEWARE: There is a small issue with all this… If your project has a minimum version of under 3.0 (ie 2.2 as per my example) and you compile with linking (ie SDK assemblies only) you will get an error ‘Mono.Cecil.ResolutionException: Failed to resolve Android.Database.IDatabaseErrorHandler’. I am currently sending support messages about this to Xamarin and will edit this post once I work out a fix.

    EDIT: To fix the issue I have mentioned above make sure that the project options -> Application -> Minimum Android to target option is at LEAST 4.0.3. Your minSdkVersion can still be 7/8 or whatever so it will still run in older android versions. It also means you have to be careful you dont code in stuff that is for higher versions.

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

Sidebar

Related Questions

I am trying to implement Action Bar using ActionBar Sherlock. I have three Action
I'm trying to make my Android app have ActionBar support on lower versions of
Trying to implement the following behavior on an iPad. I have a map-centric application
I'm trying to implement an application with a specific view. It needs to have
I'm trying to implement sherlock actionbar but i can't set the right theme in
Trying to implement 3-layer (not: tier, I just want to separate my project logically,
I'm implementing some code from an example (http://arvid-g.de/12/android-4-actionbar-with-tabs-example) and trying to convert it to
Could someone please check on codes. My XMLParser has caught an exception. I'm trying
I am trying to implement ActionBar Sherlock with Tabs below that as shown in
I'm currently trying to implements a greendroid ActionBar that have a ActivityGroup below it.

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.