使用TabHost报错:you must specify a way to create the tab indicator.
只需要在代码中加入以下代码中红色部分即可。
tabHost.addTab(tabHost.newTabSpec("tab1").setContent(new Intent(MainActivity.this, TabHomeActivity.class)).setIndicator("tab1"));
使用TabHost报错:you must specify a way to create the tab indicator.
只需要在代码中加入以下代码中红色部分即可。
tabHost.addTab(tabHost.newTabSpec("tab1").setContent(new Intent(MainActivity.this, TabHomeActivity.class)).setIndicator("tab1"));