这是我创建的 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)));
}
我想把这两个Tab放在程序中每个Activity的底部。
怎么设置啊?