Is there any alternative to nested Fragments?

后端 未结 5 1934
醉酒成梦
醉酒成梦 2021-01-12 17:42

I\'ve read around that nesting Fragments should be avoided (eg. here), but I can\'t see how to do the following:

I\'m working on a tab application (android:min

5条回答
  •  伪装坚强ぢ
    2021-01-12 18:07

    My idea was to use a BaseActivity with a layout containing the search bar and a FrameLayout in which I would load the Fragment corresponding to the user navigation choice.

    If you use separate activities, rather than trying to force everything into a single activity, you will not wind up with nested fragments.

提交回复
热议问题