【发布时间】:2012-09-20 17:54:58
【问题描述】:
我有一个对话框:标题、消息和 2 个按钮(中性和否定)我试图放置另一个中性或否定按钮,但它只显示每个按钮(中性和否定),所以有没有办法把一个按钮还是我必须创建对话框的自定义布局?如果有,该怎么做?
代码:
AlertDialog.Builder dialogo = new AlertDialog.Builder(this);
dialogo.setMessage(msg);
dialogo.setTitle(titulo);
dialogo.setNeutralButton("OK", null);
dialogo.setNegativeButton("Delete", deletar);
dialogo.show();
【问题讨论】: