複数のアクティビティを行うには 1 つのタブが必要です
例:
ShowGrid アクティビティのボタンをクリックすると、同じタブを示すタブバーを使用して Medicine アクティビティにトラバースする必要があります
単一タブの ShopGrid と薬
intent = new Intent().setClass(this, ShopGrid.class);
spec = tabHost.newTabSpec("Store").setIndicator("Store")
.setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, Medicine.class);
spec = tabHost.newTabSpec("Store").setIndicator("Store")
.setContent(intent);
tabHost.addTab(spec);