Is there any way with Android Android TabHost to prevent tabs from changing?
On iOS, there is a delegate callback called shouldSelectViewController on the tabBarController, which, if you return FALSE, prevents the tab from changing.
Android has a delegate onTabChanged (), but this seems to be a notification after the fact that a tab change has occurred (it returns void).
Thanks.
source share