How do you disable a button inside of an AlertDialog? Follow Up Question

后端 未结 4 507
北海茫月
北海茫月 2021-01-29 07:56

I asked this question yesterday (http://stackoverflow.com/questions/7392321/how-do-you-disable-a-button-inside-of-an-alertdialog) and modified my code accordingly... this mornin

4条回答
  •  广开言路
    2021-01-29 08:46

    i tryed these code and it work's you need to hid first show ok

    AlertDialog.Builder alertbox = new AlertDialog.Builder(this);
            alertbox.setMessage("You have Encountered a Monster");
            alertbox.setPositiveButton("asdasd", null);
    
            alertbox.show();
            alertbox.setPositiveButton("", null);
            alertbox.show();
    

提交回复
热议问题