• <tfoot id='SWkkk'></tfoot>

        <bdo id='SWkkk'></bdo><ul id='SWkkk'></ul>

      1. <small id='SWkkk'></small><noframes id='SWkkk'>

      2. <i id='SWkkk'><tr id='SWkkk'><dt id='SWkkk'><q id='SWkkk'><span id='SWkkk'><b id='SWkkk'><form id='SWkkk'><ins id='SWkkk'></ins><ul id='SWkkk'></ul><sub id='SWkkk'></sub></form><legend id='SWkkk'></legend><bdo id='SWkkk'><pre id='SWkkk'><center id='SWkkk'></center></pre></bdo></b><th id='SWkkk'></th></span></q></dt></tr></i><div id='SWkkk'><tfoot id='SWkkk'></tfoot><dl id='SWkkk'><fieldset id='SWkkk'></fieldset></dl></div>
      3. <legend id='SWkkk'><style id='SWkkk'><dir id='SWkkk'><q id='SWkkk'></q></dir></style></legend>

        android中的警报对话框不应关闭

        时间:2023-08-28
            <i id='0EXRI'><tr id='0EXRI'><dt id='0EXRI'><q id='0EXRI'><span id='0EXRI'><b id='0EXRI'><form id='0EXRI'><ins id='0EXRI'></ins><ul id='0EXRI'></ul><sub id='0EXRI'></sub></form><legend id='0EXRI'></legend><bdo id='0EXRI'><pre id='0EXRI'><center id='0EXRI'></center></pre></bdo></b><th id='0EXRI'></th></span></q></dt></tr></i><div id='0EXRI'><tfoot id='0EXRI'></tfoot><dl id='0EXRI'><fieldset id='0EXRI'></fieldset></dl></div>

            <small id='0EXRI'></small><noframes id='0EXRI'>

            <legend id='0EXRI'><style id='0EXRI'><dir id='0EXRI'><q id='0EXRI'></q></dir></style></legend>

                <tbody id='0EXRI'></tbody>
            1. <tfoot id='0EXRI'></tfoot>

                • <bdo id='0EXRI'></bdo><ul id='0EXRI'></ul>
                  本文介绍了android中的警报对话框不应关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在制作一个应用程序,其中有一个警报对话框.

                  I am making an application and it has an Alert Dialog in it.

                  现在我正在检查我在对话框正按钮 OnClick 方法中从 AlertDialog editTexts 获得的一些数据,但如果我从 edittext 字段获得的数据正确与否,对话框总是会关闭.

                  Now i am checking some data I got from AlertDialog editTexts in dialog Positive button OnClick method but the dialog always dismiss if data i got from edittext fields is correct or not.

                  我们如何禁用此功能.

                  更新:

                  我正在从对话框中获取 Pin 码和确认 Pin 码,在 onPositive 单击中我已检查以验证 pin 码.

                  I am gettin Pin Code and Confirm Pin Code from the Dialog Box and in onPositive click i have checked to verify the pin codes.

                  现在,如果 pin 码匹配,则调用 dialog.dismiss(),如果不匹配,则显示 Toast.

                  Now if the pin codes matches then it is calling dialog.dismiss() and if not matching then display a Toast.

                  但如果密码不匹配,它会向我显示消息并关闭对话框.

                  But in case of pin code not matched it displays me the message and dismiss the dialog.

                  我不希望这样的事情发生.

                  I dont want that to be happen.

                  更多更新:

                  有什么方法可以禁用确定"按钮,并在验证数据后启用肯定按钮?

                  is there any way that i will disable the OK Button and when data is verified it will enable the positive Button??

                  请帮忙

                  推荐答案

                  Cap.谢谢你的帮助.通过您的指南,我知道我可以禁用警报对话框按钮.是的!可以禁用按钮.

                  Cap. Thanks for your help. through your guides i have got to know that i can disable the Alert Dialog Button. YES! its possible to disable the buttons.

                  答案是:

                  我们可以使用以下方法禁用按钮:

                  we can disable the button using:

                    Button pos =  Dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false);
                    pos.setEnabled(true);
                  

                  这篇关于android中的警报对话框不应关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:错误的窗口令牌,您无法在创建 Activity 之前或隐 下一篇:Appcompat 警报对话框操作按钮背景 按下状态

                  相关文章

                  最新文章

                  <small id='BLPrT'></small><noframes id='BLPrT'>

                    <bdo id='BLPrT'></bdo><ul id='BLPrT'></ul>

                  1. <i id='BLPrT'><tr id='BLPrT'><dt id='BLPrT'><q id='BLPrT'><span id='BLPrT'><b id='BLPrT'><form id='BLPrT'><ins id='BLPrT'></ins><ul id='BLPrT'></ul><sub id='BLPrT'></sub></form><legend id='BLPrT'></legend><bdo id='BLPrT'><pre id='BLPrT'><center id='BLPrT'></center></pre></bdo></b><th id='BLPrT'></th></span></q></dt></tr></i><div id='BLPrT'><tfoot id='BLPrT'></tfoot><dl id='BLPrT'><fieldset id='BLPrT'></fieldset></dl></div>
                  2. <legend id='BLPrT'><style id='BLPrT'><dir id='BLPrT'><q id='BLPrT'></q></dir></style></legend>
                    1. <tfoot id='BLPrT'></tfoot>