tarek360 / RichPath

💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can.

Home Page:https://twitter.com/a_tarek360

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repeatCount does not work

linfeizheng opened this issue · comments

RichPathAnimator.animate(top)
                .interpolator(new DecelerateInterpolator())
                .rotation(0, 20, -20, 10, -10, 5, -5, 2, -2, 0)
                .duration(4000)
                .repeatCount(Integer.MAX_VALUE)
                .andAnimate(bottom)
                .interpolator(new DecelerateInterpolator())
                .rotation(0, 10, -10, 5, -5, 2, -2, 0)
                .startDelay(50)
                .duration(4000)
                .repeatCount(Integer.MAX_VALUE)
                .start();

when i use ".repeatCount(Integer.MAX_VALUE)" , the image is quiet

Please use
repeatCount(RichPathAnimator.INFINITE)
and don't use
repeatCount(Integer.MAX_VALUE)