I hope to get a dialog just like a.png, but the following code can't create the UI just like a.png. How can I do? Thanks!
AlertDialog.Builder builder = new Builder(this);
builder.setMessage("The operation will spend long time!");
builder.setTitle(getString(R.string.Warning));
builder.setMultiChoiceItems(new String[] { "Don't display the message again" }, null, null);
builder.setPositiveButton(getString(R.string.OK), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
}
});
builder.create().show();