Refresh or change the AlertDialog Message

后端 未结 4 427
攒了一身酷
攒了一身酷 2021-01-11 09:32

I create an AlertDialog

AlertDialog.Builder builder = new AlertDialog.Builder(this);
...
AlertDialog alert = builder.create();
alert.show();
<
4条回答
  •  花落未央
    2021-01-11 10:15

    Yes ,you can.

    For example, if you create your own dialog, with your own layout, you can set an id for each of the views, and then access each of them (for example the textView) and set its new text whenever you wish to.

提交回复
热议问题