OnClickListener on Tabs not working

后端 未结 4 1280
孤独总比滥情好
孤独总比滥情好 2020-12-05 09:19

Greetings,

I am trying to get the Click - event when clicking on the currently selected tab of my TabActivity. The onTabChangedHandler is only called whenever the ta

4条回答
  •  不知归路
    2020-12-05 09:32

    into my code, it shows some errors and ask me to create new methods in those names like getTabWidget(), getTabHost(), etc. Waiting for your response.

    Try this

     tabHost.getTabHost().setCurrentTab(myTabIndex);
    

提交回复
热议问题