Android Tabhost Deprecated
Solution 1:
There are many points to your question,
TabHost
is not deprecated yet. Recently Google deprecatedTabActivity
andActivityGroup
.- Even if it deprecated, it doesn't mean it can't be used. If X is deprecated, it only means a better alternative named Y is there.
Now to answer your question, You have more than one options
- You can use ActionBarSherlock as other answers suggests. (EDIT : ActionBarSherlock is now deprecated.)
- You can use
TabHost
with fragments, See my answer here for a good example. To useFragment
in pre 3.0 API's you need to use Google's support library.
Solution 2:
Try out ActionBarSherlock.
ActionBarSherlock is an extension of the support library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.
The library will automatically use the native action bar when appropriate or will automatically wrap a custom implementation around your layouts. This allows you to easily develop an application with an action bar for every version of Android from 2.x and up.
Tutorials:
Solution 3:
Just to add, Android has introduced ActionBarCompat to ensure ActionBar is compatible with OS below 3.0 down to 2.1. You can use ActionBarCompat in the support library instead of ActionBarSherlock
http://android-developers.blogspot.co.uk/2013/08/actionbarcompat-and-io-2013-app-source.html
Post a Comment for "Android Tabhost Deprecated"