Two DialogFragment get overlaid

Viewed 56

I'm trying to show two DialogFragment at the same time. One of them is a full-screen dialog, the second should be visible after the user dismisses the full-screen one.

This is what I'm trying to achieve (DialogFragment #1 -> DialogFragment #2 -> Fragment):

Expected behaviour

The problem is:

  1. DialogFragment #1 is initiated at the same time than Fragment.
  2. Fragment performs a network call that will show the DialogFragment #2 once finishes.
  3. DialogFragment #2 appears over the DialogFragment #1 while it should be shown under it.

So it looks like this:

Current behaviour

Would it be possible to change the elevation of a DialogFragment or any way to force one to appear over the other?

0 Answers
Related