Noty icon indicating copy to clipboard operation
Noty copied to clipboard

How to auto dismiss after a few seconds?

Open Testator opened this issue 5 years ago • 2 comments

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

Originally posted by @emre1512 in https://github.com/emre1512/Noty/issues/1#issuecomment-499334055

.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?

Testator avatar Jun 06 '19 06:06 Testator

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.

emre1512 avatar Jun 06 '19 07:06 emre1512

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

can i add custom layout to access it?

Testator avatar Jun 11 '19 07:06 Testator