The following code will produce a truely model dialog box, with close button. Truely model means, when you click on the area other than dialog box, the dialog box will remain active and will not close.
AlertDialog alert = builder
.setCancelable(false)
.setPositiveButton(context.getResources().getString(R.string.about_close), null)
.create();
alert.show();
The following will produce a dialog box without close button. When you click on the area other than dialog box, the dialog box will be closed.
AlertDialog alert = builder
.setCancelable(false)
.create();
alert.show();
Is there any way I can have a truely model dialog, without button?
1 Answer