简体   繁体   中英

create Dialog over another dialog

I want to create a dialog. I create a class and class extend Dialog . I create an object from this class when click on a button from my activity and call show method. If i click on button 2 times or more, second dialog create over first dialog and third dialog create over second dialog and more. when i click on back button , my dialogs remove one by one. How can i solve this problem? Please say a recommend. Thanks

Dialog有一个名为isShowing()的函数,该函数返回一个布尔值以指示您的Dialog Show状态,当您按下按钮时,您可以检查以前的Dialog isShowing()是否不再实例化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM