阅读背景:

如何在单击按钮时防止对话框关闭

来源:互联网 

I have a dialog with EditText for input. When I click the "yes" button on dialog, it will validate the input and then close the dialog. However, if the input is wrong, I want to remain in the same dialog. Every time no matter what the input is, the dialog should be automatically closed when I click on the "no" button. How can I disable this? By the way, I have used PositiveButton and NegativeButton for the button on dialog. for input. When I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: