开发者

How to remove the selected tab in Android?

What should I do to remove only the selected tab in android? Is there anything like remove tab or anything that helps me to remove a tab in the TabWidget class or in another开发者_开发技巧 class of the Android API?


The only way I know is to use myTabHost.clearAllTabs() and than add the wanted tabs again


You need save your TabSpec in ListArray, than you delete from that ListArray current TabSpec, after that you make mTabHost.clearAllTabs() and than simply adding saved TabSpec's in cycle to your TabHost.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜