我在下面写了一个 Tabhost:
public class AppTabhost extends TabActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/**find tab host**/
TabHost tabHost = getTabHost();
/**add tabs**/
//tab 1
tabHost.addTab(tabHost
.newTabSpec("tab1")
.setIndicator("tab1")
.setContent(new Intent(AppTabhost.this, anotherActivity.class)));
//tab 2
tabHost.addTab(tabHost
.newTabSpec("tab2")
.setIndicator("tab2")
.setContent(new Intent(AppTabhost.this, theotherActivity.class)));
}
我想把它放在我的应用程序中每个活动的底部
我能怎么做?