Back to project page acs-android-sdk.
The source code is released under:
Apache License
If you think the Android project acs-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.appcelerator.cloud.demo; /*from w ww . ja va 2s .c o m*/ import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; public class TabView extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final TabHost tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec("tab1") .setIndicator("Explore", getResources().getDrawable(R.drawable.map)) .setContent(new Intent(this, Explore.class))); tabHost.addTab(tabHost.newTabSpec("tab2") .setIndicator("User", getResources().getDrawable(R.drawable.user)) .setContent(new Intent(this, UserView.class))); } }