Replacing Tabs programmitcally from Fragment and setting it to currentTab (Android) -



Replacing Tabs programmitcally from Fragment and setting it to currentTab (Android) -

i'm trying alter tabs programmitcally , setting tab selected. in case profilefragment imagesfragment.

this how i'm trying alter it, works fine:

fragmentmanager fragmentmanager2 = getfragmentmanager(); fragmenttransaction fragmenttransaction2 = fragmentmanager2.begintransaction(); fragment fragment2 = new imagesfragment(); fragmenttransaction2.addtobackstack(null); fragmenttransaction2.hide(profilefragment.this); fragmenttransaction2.add(android.r.id.content, fragment2); fragmenttransaction2.commit();

the problem imagesfragment view overlaps profilefragment view , profilefragment tab still selected.

i'm using android back upwards library v4 , actionbar.tablistener

hope can help

android android-fragments fragment android-support-library android-tabs

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -