Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding ActionBar to Android API Level 8 App?

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.

like image 253
Ash Avatar asked Nov 14 '11 21:11

Ash


People also ask

Where is ActionBar in Android?

Android ActionBar is a menu bar that runs across the top of the activity screen in android. Android ActionBar can contain menu items which become visible when the user clicks the “menu” button.

How do I add an icon to the Android toolbar?

Now if you want to add other resolutions pictures to this drawable, just do it in the same manner. Step 5) And now go to the other folder which is Settings -> Androids-> drawable hdpi. And then go to your Android, then drawable, paste it here and inside this drawable-hdpi and click Ok.


1 Answers

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

like image 87
Jake Wharton Avatar answered Oct 12 '22 02:10

Jake Wharton