Using FragmentTransaction with a DialogFragment

前端 未结 4 1914
后悔当初
后悔当初 2021-02-05 18:03

So I\'ve created a DialogFragment that is shown as a dialog via this technique

Now that it\'s launched and upon a user interaction within this popup I want to slide in a

4条回答
  •  春和景丽
    2021-02-05 19:04

    When a DialogFragment is shown as a Dialog it is not actually a real Fragment in a container view. It is a container-less Fragment which is basically a wrapper of a Dialog.

    So no, you can not show a Fragment inside a FragmentDialog. If you really want to do this I think the best way would to create a new Activity styled as a Dialog which you can then add Fragments too.

提交回复
热议问题