1

Android various dialog boxes will pop up in an interface. How can I ensure that one dialog box is on top of all other dialog boxes,we set

 dialog.window?.setType(WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW)

is not working

zhej
  • 21
  • 3
  • There isn't any particular solution available for android as of now. But you can create a custom layout for dialog. Refer [this answer](https://stackoverflow.com/a/8425019/11555065) – DHAVAL A. Dec 06 '21 at 08:28
  • Why would you want to do that? Show one dialog box at a time, take input from the user and move to the next one. –  Dec 06 '21 at 08:53
  • he dialog box is asynchronous. Our project has a forced update dialog box. In order to ensure that users can force the update, when the forced dialog box pops up, other dialog boxes can only be displayed at the bottom – zhej Dec 06 '21 at 09:16

0 Answers0