2011-02-17 213 views

回答

42

,從資源獲取TabHost作爲

TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost); 

然後運行時使用此

tabHost.getTabWidget().getChildAt(3).setVisibility(View.GONE); 

假設你正在試圖隱藏第四選項卡。(So 3 is used

+0

它的工作原理,感謝ü非常 – indira 2011-02-17 09:05:48