开发者

Don't want any tab widget selected in tab host <android>

Can anyone please help to solve this : I have 5 tab widgets in my TabHost; when I start my TabActivity extended class, 开发者_运维问答the fist tab-widget is selected by default, but I don't want to select any until user click on one.

I also tried setting the selected tab to -1, but it's not working.

Please help me if you know the way to solve it.


You can add an extra Tab, as your first tab, and make that tab invisible. When you create the first time your TabActivity select that tab.( setCurrentTab(0));

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜