Robby Pond
Robby Pond

Reputation: 73484

TabHost obtaining previous tab after a tab change

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

Upvotes: 1

Views: 1668

Answers (1)

Falmarri
Falmarri

Reputation: 48567

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

Upvotes: 3

Related Questions