Adding ActionBar to Android API Level 8 App?

Ash picture Ash · Nov 14, 2011 · Viewed 17.3k times · Source

I know there is a lot of fragmented material on how to do do this all over the internet but I am requesting someone to please give me a step by step guide on how to go from the very beginning, adding the library to adding the code into my Android application / project.

I like the look of this one: https://github.com/johannilsson/android-actionbar but I cannot get it to work properly :/ I have a feeling I'm missing something.

My Application is for Android version 2.2.

Answer

Jake Wharton picture Jake Wharton · Nov 14, 2011

I wrote ActionBarSherlock which is an extension of the compatibility library designed to provide a single action bar API which works both with a native implementation on pre-3.0 devices as well as with the native ActionBar on post-3.0. This will allow you to write apps which work as low as Android 1.6 and up through Android 4.0+ without having to worry about shuffling between implementations. The library takes care of applying your API calls and theme across the Honeycomb divide.

You can find more information on http://actionbarsherlock.com such as sample applications and documentation.

enter image description here