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

How to auto dismiss after a few seconds? #2

Open
Testator opened this issue Jun 6, 2019 · 2 comments
Open

How to auto dismiss after a few seconds? #2

Testator opened this issue Jun 6, 2019 · 2 comments

Comments

@Testator
Copy link

Testator commented Jun 6, 2019

(...).setAnimation(RevealAnim reveal, DismissAnim dismiss, int revealTime, int dismissTime);

Originally posted by @emre1512 in #1 (comment)

.setAnimation(Noty.RevealAnim.SLIDE_DOWN, Noty.DismissAnim.BACK_TO_TOP, 400, 400)

this is the default and doesnt auto dismiss. Why you close if you cannot answer?

@emre1512
Copy link
Owner

emre1512 commented Jun 6, 2019

Oh sorry, I didn't see the "auto" part. There is no auto dismiss feature. I think you need to handle it yourself inaway. Using

yourTextView.performClick();

with a timer may work. Both warning box and the action button is textview.

@Testator
Copy link
Author

how do I access the warningbox textview if I am loading through gradle?

can i add custom layout to access it?

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

2 participants