问题
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