This week, a new version of Android support library ( Revision 18 ) is released with a new library called appcompat under the package android.support.v7. This new library is available at <path-to-android-sdk>/extras/android/support/v7/appcompat .
The new library facilitates users to implement action bar back up to Android 2.1 ( API Level 7 ) .
This article, demonstrates how to setup the new ActionBarCompat support library in Eclipse.
In this article, we are using Eclipse 4.2.0 with ADT plugin 22.0.1.
1. Ensure to have the latest version of Android Support Library
2. Create new Android Project from existing code
3. Browse the directory appcompat from <path-to-android-sdk>/extras/android/support/v7 and click finish
4. Now, a new project is created as “android-support-v7-appcompat”
5. Setup JavaBuild Path
- Right click the project “android-support-v7-appcompat” and click “Properties”
- Select “Java Build Path”
- Open the tab “Order and Export”
- Tick “Android Private Libraries” and click OK
6. Clean and Build the project
7. Ready to use
Now the ActionBarCompat library is ready to use for implementing action bar in Android applications.
8. What is next?
Now we need to test the working of this library. For this please follow the article titled “Implementing Action Bar using ActionBarCompat support library in Android”
I am George Mathew, working as software architect and Android app developer at wptrafficanalyzer.in
You can hire me on hourly basis or on project basis for Android applications development.
For hiring me, please mail your requirements to email@example.com.
My other blogs