Closed stars-one closed 5 months ago
目前有个需求,进入页面会弹出几个对话框(CustomDialog),需要在当前监听到没有对话框的情况下再进行某个操作,有无方法实现呢?
对话框是否处于启动状态可以通过:
boolean showStatus = dialog.isShow();
来判断,具体请根据你的业务场景启动对话框,并持有对话框实例,在需要的时候进行判断:
CustomDialog dialog = CustomDialog.show(...); //... //判断 if (dialog.isShow()){ ... }
功能建议
需求描述:
目前有个需求,进入页面会弹出几个对话框(CustomDialog),需要在当前监听到没有对话框的情况下再进行某个操作,有无方法实现呢?