如果字符串太长,是否可以在警报对话框中显示所有文本?当它太长时,对话框不会显示整个消息,而是会添加一个省略号 ...
我的代码是:
builder = new AlertDialog.Builder(this);
builder.setMessage("Do you want to play the game again.")
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//Do Something for OK
}
.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//Do Something for No
}
}
});
alert = builder.create();
alert.show();