开发者

How to set the Tab Visibility in android?

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜