Kurt
Kurt

Reputation: 1

How to create a ActionBar in Android 2.2 version?

I'm new in Android programming. I just wanna how to create a ActionBar for android 2.2 version.

Upvotes: 0

Views: 2327

Answers (3)

user5395084
user5395084

Reputation:

Use AppCompat library from com.android.support.

Google has released com.android.support to support things like this on older devices

Add the dependecy in build.gradle (it's NOT in the root directory) inside dependencies{...}

dependencies {
    compile 'com.android.support:appcompat-v7:23.1.1'
}

And change your theme to Theme.AppCompat or Theme.AppCompat.* (The wildcard represents more styles inside Theme.AppCompat

Upvotes: 0

Kapil Vats
Kapil Vats

Reputation: 5515

yes ActionBarSherlock is best option,

Please See https://github.com/JakeWharton/ActionBarSherlock

Upvotes: 2

Michell Bak
Michell Bak

Reputation: 13242

You can use ActionBarSherlock. It's an open source library that emulates the exact features and design of the ActionBar.

Please see: http://actionbarsherlock.com

Google uses this as well in a number of applications.

Upvotes: 3

Related Questions