MarsadMaqsood/StylishDialogs

how to use setCanceledOnTouchOutside setCancelable

Closed this issue · 1 comments

if i click back button while the dialog is cancelled, how to overcome it.

Binu

setCancelable(false) used to prevent the dialog from dismissing when the back button pressed...
setCanceledOnTouchOutside(false) use to prevent the dialog from dismissing when pressed outside the dialog...

For example:

StylishAlertDialog alertDialog = new StylishAlertDialog(this,StylishAlertDialog.NORMAL);
alertDialog.setCancelable(false);
alertDialog.setCanceledOnTouchOutside(false);
alertDialog.show();