Android Honeycomb: layout problem - hide/show FrameLayouts

前端 未结 1 1607
旧时难觅i
旧时难觅i 2021-01-21 19:37

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 wan

相关标签:
1条回答
  • 2021-01-21 19:43

    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

    0 讨论(0)
提交回复
热议问题