Open AladdinHZ opened 7 years ago
if you are using a custom view, you can make that.
... MaterialStyledDialog.Builder builder = new materialStyledDialog.Builder(this); builder.setCustomView(custoView); //<----- builder.setHeaderColor(...); builder.setIcon(...);
final Dialog dialog = builder.show(); //<-----
mButtomInCustomView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ... dialog.dismiss(); //<----- } });
I think the author is suggesting there be a way to listen for an onTouchOutside event. This is much needed.
Hello . I was wondering if there is any way to Add on Dismiss Listener ?