-1

hey guys currently i have TabHost implemented with 3 tabs each containing separate activity.

Each activity has Spinner view. I want to do Tab switching automatically i.e. when I select

first spinner then next tab should get called automatically. How can I do this?

4

1 回答 1

1

使用TabHost.setCurrentTab方法。请记住选项卡索引从 0 开始。例如切换到第二个选项卡使用

getTabHost().setCurrentTab(1);
于 2013-05-07T15:39:17.140 回答