Reputation: 1
I'm new in Android programming. I just wanna how to create a ActionBar for android 2.2 version.
Upvotes: 0
Views: 2327
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
Reputation: 5515
yes ActionBarSherlock is best option,
Please See https://github.com/JakeWharton/ActionBarSherlock
Upvotes: 2
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