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. enter image description here

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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -