Display Android dialog on top of another?

后端 未结 4 970
离开以前
离开以前 2020-12-19 07:46

I have 2 alert dialogs, dialog A and dialog B. Clicking on one of dialog A\'s buttons will bring up dialog B. I then want to have a button that will dismiss dialog B and ret

4条回答
  •  庸人自扰
    2020-12-19 08:30

    As one reply mentioned, you cannot do this with standard dialogs. But you can do it by making the first dialog be an activity that is styled to look like a dialog, and the second is actually a dialog. Just set the theme of the activity in your layout like so:

    
    

    See this topic on making an activity that looks like a dialog. https://stackoverflow.com/a/1979631/602661

提交回复
热议问题