how to use setCanceledOnTouchOutside setCancelable
Closed this issue · 1 comments
binu8051 commented
if i click back button while the dialog is cancelled, how to overcome it.
Binu
MarsadMaqsood commented
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();