Reputation: 1
I'm just new in android.. i just wanna ask how to create a actionbar ??.. without using a import com.markupartist.android.widget.Actionbar that comes from a project that I have been downloaded.. Thank you .. I'm using a 2.2 version
Upvotes: 0
Views: 2209
Reputation: 10633
If you want to use ActionBar in your project, then just download it from this link Download Actionbar library project
Its done...
Upvotes: 0
Reputation: 67259
From the Android Developers guide:
Beginning with Android 3.0 (API level 11), the action bar is included in all activities that use the Theme.Holo theme (or one of its descendants), which is the default theme when either the targetSdkVersion or minSdkVersion attribute is set to "11" or greater.
Thus you simply need to set
<uses-sdk android:minSdkVersion="11" />
or
<uses-sdk android:targetSdkVersion="11" />
in your AndroidManifest.xml. You can, of course, set either to higher than 11 as needed, but 11 is the minimum for automatically including the ActionBar.
Upvotes: 0
Reputation: 72673
You'll get a ActionBar by default, if your app runs HC+ (and you use the holo theme). However, since the ActionBar got introduced with HC (API Level 11) you have to use ActionBarSherlock
, if you want to use it on pre HC devices.
Upvotes: 1