TabHost obtaining previous tab after a tab change

强颜欢笑 提交于 2019-12-13 02:14:58

问题


I have a TabHost and have set an onTabChangeListener. In onTabChange() is it possible to determine the previous tab?


回答1:


Probably not, you'll have to store that information yourself. Just keep a record of previous tab in your class that listens for onTabChange()



来源:https://stackoverflow.com/questions/4307235/tabhost-obtaining-previous-tab-after-a-tab-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!