Create a novel Android Project
Application Name: TabHost Example
Company Domain: viralandroid.com
Package Name: com.viralandroid.tabhostexample
Minimum SDK: Android 2.2 (API eight Froyo)
Add TabHost inwards XML Activity Layout
At first, you lot convey to add together TabHost, TabWidget, FrameLayout to your XML action layout. Aftrer adding TabHost, TabWidget together with FrameLayout, your XML file looks similar this.
Modify your Java Activity
To brand working perfectly, you lot convey to add together fiddling flake code to your coffee file together with in conclusion modified code of coffee action file looks similar this.
Now, runs your TabHost application which volition expect similar screenshot below.
Download Complete Example Project
Download consummate Android TabHost together with TabWidget Example projection root code from GitHub.