Skip to content Skip to sidebar Skip to footer

Android Honeycomb: Layout Problem - Hide/show Framelayouts

in my Activity, I have a layout containing 3 FrameLayouts, one at the top, one at the left and one at the 'center'. Now, I sometimes only want to display one or two of them. Atm I

Solution 1:

I would have two suggestions. Firstly, if you both add a fragment transition effect and do the visibility changes after the transaction, that would probably substantially reduce much of your flicker effect

ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);

Secondly, I've simply given up on having the system manage the fragment stack for me -- it seems that this only works well with simple transactions. Override onBackPressed and do your own logic there.

--randy

Post a Comment for "Android Honeycomb: Layout Problem - Hide/show Framelayouts"