android - How to programmatically change tab in MvxTabsFragmentActivity? -
i use mvxtabsfragmentactivity in app. have 3 tabs. use button on tab @ number "3". when click button want switch tab number "1". use code:
base.ontabchanged("1"); it work - content changes, selection remains of title on "3" tab. 
how make selection of title changed?
i think problem calling ontabchanged directly instead of calling changes tab.
there couple of approaches can use this. can tabhost , call tabhost.setcurrenttab(1).
also try getactionbar().setselectednavigationitem(0);. if using actionbar (which looks are). 
have seen this question? may solve problem.
if answer doesn't help, should post more of code (i.e. full mvxtabsfragmentactivity class) i/we can figure out specific issue(s).
good luck!
Comments
Post a Comment