bulubuloa
bulubuloa

Reputation: 597

Action Bar for android < 3.0

I want use ActionBar for my application but i found it can't use for android < 3.0. I found this https://github.com/johannilsson/android-actionbar to solved my problem but I get error at

import com.markupartist.android.widget.ActionBar;
import com.markupartist.android.widget.ActionBar.Action;
import com.markupartist.android.widget.ActionBar.IntentAction;

Upvotes: 1

Views: 1679

Answers (4)

sovanlandy
sovanlandy

Reputation: 1700

I spent around 10 hours trying to fix this problem. All the above ans does not work. Actually what is missing is android support library. To fix this, right click on project, >Android Tool> Add Support Library. Hope this save alot of time for other who came across this. just add support library both on your ActionBar library and the current project.

Upvotes: 0

Luminger
Luminger

Reputation: 2194

Give ActionBarSherlock a try. I use it for one of my projects and after some reading of the docs and the samples it just worked. The samples are easy and straight forward, you should be able to extract what you need from them.

To see what it's able of just download the sample app from the market: Sample App (requires at least Android 1.6)

Upvotes: 2

nhaarman
nhaarman

Reputation: 100358

You should add the code to a library, and add the library to your project.

To do this in Eclipse create a new project, using the same package name as the github project (so com.markupartist.android.widget). In the properties select the project to be a library under the Java Build Path tab. Then, in your project, go to its properties, and select the library.

Upvotes: 1

iSun
iSun

Reputation: 1754

I think your including files are missing (JAR libs) , Click on error icon and then select fix project setup.

Upvotes: 0

Related Questions