florent37 / ViewAnimator

A fluent Android animation library
Apache License 2.0
2.71k stars 423 forks source link

repeatMode(ValueAnimator.INFINITE) doesn't work #42

Closed NayMak closed 6 years ago

NayMak commented 6 years ago

Hello,

Here is my code:

ViewAnimator viewAnimator = ViewAnimator.animate(textView)
                .tada()
                .duration(4000)
                .repeatMode(ValueAnimator.INFINITE)
                .start();

The animation works but the 'ValueAnimator.INFINITE' value (which is an enum that is equal to "-1") doesn't work to make the animation loop indefinitely.

Could someone help me to find the issue?

florent37 commented 6 years ago

use .repeatCount(ValueAnimator.INFINITE) and .repeatMode(ValueAnimator.RESTART) (or REVERSE)

Le jeu. 24 mai 2018 à 10:30, NayMak notifications@github.com a écrit :

Hello,

Here is my code:

ViewAnimator viewAnimator = ViewAnimator.animate(textView) .tada() .duration(4000) .repeatMode(ValueAnimator.INFINITE) .start();

The animation works but the 'ValueAnimator.INFINITE' value (which is an enum that is equal to "-1") doesn't work to make the animation loop indefinitely.

Could someone help me to find the issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/florent37/ViewAnimator/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AFfQXEFSxhlHJgFXFbi_698pcyWVVistks5t1m-3gaJpZM4ULygZ .

NayMak commented 6 years ago

It works! Thank you!

florent37 commented 6 years ago

;)

TurKurT656 commented 5 years ago

How to add delay between loops?

NayMak commented 4 years ago

@TurKurT656 I think you need to open a new issue if you want to ask news questions 😊 This topic is closed anyway