ColorDialog
ColorDialog copied to clipboard
how to set cancelable false?
new PromptDialog(this)
.setDialogType(PromptDialog.DIALOG_TYPE_WARNING)
.setCancelable(false)
.setTitleText("Alert") // Shows error ...why?
.setContentText("Are you there")
.setPositiveListener("YES", new PromptDialog.OnPositiveListener()
{
@Override
public void onClick(PromptDialog dialog) {
dialog.dismiss();
}
}).show();
Did this ever get answered? I need to add a cancel button to the standard prompt
new PromptDialog(this) .setDialogType(PromptDialog.DIALOG_TYPE_WARNING) .setCancelable(false) .setTitleText("Alert") // Shows error ...why? .setContentText("Are you there") .setPositiveListener("YES", new PromptDialog.OnPositiveListener() { @Override public void onClick(PromptDialog dialog) { dialog.dismiss(); } }).show();
maybe u can : PromptDialog dialog = new PromptDialog(this) .setDialogType(PromptDialog.DIALOG_TYPE_SUCCESS) .setAnimationEnable(true) .setTitleText(getString(R.string.success)) .setContentText(getString(R.string.text_data)) .setPositiveListener(getString(R.string.ok), new PromptDialog.OnPositiveListener() { @Override public void onClick(PromptDialog dialog) { dialog.dismiss(); } }); dialog.setCancelable(true); dialog.show();