user1642860
user1642860

Reputation: 25

use actionbar in android 2.3 programming

I have been using actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in my app but the target device is android 2.3.2 and does not support this code. Is there any solution to have actionbar and tabview in android 2.3?

Upvotes: 0

Views: 1042

Answers (3)

Uday
Uday

Reputation: 1699

Yeah ActionbarSherlock is a best way to do it.

Here is how to add it link

Upvotes: 0

karllindmark
karllindmark

Reputation: 6071

The solution for getting using the ActionBar in versions prior to 3.0 is called ActionBarSherlock, and enables you to give the user a unified experience across the Android versions.

Link to the website: ActionBarSherlock.com

There's actually also something called ActionBarCompat (read more here), but it's really inferior to ActionBarSherlock.

Edit: You'll find a lot of useful samples within the project hierarchy, but this should probably be the thing you're looking to accomplish: TabNavigation.java

Upvotes: 2

Tomislav
Tomislav

Reputation: 3211

Use ActionbarSherlock: http://actionbarsherlock.com/‎ Here is the tutorial for using tabs with ActionbarSherlock : http://www.androidbegin.com/tutorial/implementing-actionbarsherlock-fragment-tabs-in-android/

Upvotes: 0

Related Questions