Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss Listener #35

Open
AladdinHZ opened this issue Dec 22, 2016 · 2 comments
Open

Dismiss Listener #35

AladdinHZ opened this issue Dec 22, 2016 · 2 comments

Comments

@AladdinHZ
Copy link

Hello .
I was wondering if there is any way to Add on Dismiss Listener ?

@F4bioo
Copy link

F4bioo commented Apr 23, 2017

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(); //<-----
}
});

@fxmeister
Copy link

I think the author is suggesting there be a way to listen for an onTouchOutside event. This is much needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants