I am having a tab widget 开发者_StackOverflowwith three tabs, I need to set the visibility for that when the:
tabhost.setcurrentTab(0);
the other two tabs should be invisible.
You need to set the visibility
to View.GONE
for the tab you want to hide, as follows:
tabHost.getTabWidget().getChildAt(hiddenTabPosition)
.setVisibility(View.GONE);
精彩评论