Naveen Chauhan
Naveen Chauhan

Reputation: 2026

How to add the Action bar in android 2.3 platform?

In my application i want to create an action bar which as my application icon and a view control. I refered so many tutorials and samples to create action bar but all of them have a plenty of code. I have also read the ActionBarSherlock but this need minsdkversion 15 to compile the libraries. Because i am new in android therefore i need a step by step tutorial to create a simple action bar. If you know a simple and easy tutorial to create action bar using xml then please post your answer.

Upvotes: 7

Views: 16341

Answers (2)

Master
Master

Reputation: 2959

Read this tutorial from Android's official site. Action Bar Android You just need to include android-support-v7-appcompat.jar support jar in your project from your android-sdk-windows\extras\android\support\v7\appcompat\libs path on your disk. Then you can use ActionBar below API 11 in Android.

Official Android Tutorial is here: Action Bar Android Official Sherlock bar was creating issues for me then I got this solution.

Upvotes: 2

Ian Newson
Ian Newson

Reputation: 7949

I've used this library for adding an action bar to 2.2+ apps:

https://github.com/johannilsson/android-actionbar

I found it easy to use and visually appealing, although the style of it does not exactly match the default action bar in ICS.

Upvotes: 6

Related Questions