alert dialog in android should not dismiss

前端 未结 3 1823
甜味超标
甜味超标 2021-02-04 14:38

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

Now i am checking some data I got from AlertDialog editTexts in dialog Positive button OnClick method but

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 15:11

    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.

    Answer is:

    we can disable the button using:

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

提交回复
热议问题