怎么去掉tabhost默认的选项卡

问题描述:

<?xml version="1.0" encoding="utf-8"?>

android:state_selected="true"
android:drawable="@drawable/select_local" />

android:state_selected="false"
android:drawable="@drawable/unselect_local" />

继承的是TabActivity
tabhost.addTab(tabhost.newTabSpec("1").setIndicator("",getResources().getDrawable(R.drawable.local_card)).setContent(new Intent(this, LocalActivity.class))
);
tabhost.addTab(tabhost.newTabSpec("2").setIndicator("",getResources().getDrawable(R.drawable.scenery_card)).setContent(new Intent(this, SceneryActivity.class))
);
图片是浮在默认的选项卡上,怎么去掉默认的选项卡

这个稍微有点复杂,跟你想象的可能不太一样
看下这个把[url]http://flysnow.iteye.com/blog/938363[/url]