ozodrukh / CircularReveal

Lollipop ViewAnimationUtils.createCircularReveal for everyone 4.0+
MIT License
2.43k stars 391 forks source link

Duration ignored when animation reversed #78

Closed behelit closed 8 years ago

behelit commented 8 years ago

No matter what duration I set, the animation runs for around ~1000ms only when reversed

SupportAnimator animator = ViewAnimationUtils.createCircularReveal(view, cx, cy, 0, finalRadius);
animator.setInterpolator(new DecelerateInterpolator());
animator.setDuration(15000);
animator = animator.reverse();
animator.start();
behelit commented 8 years ago

Solved by setting the duration after the line animator = animator.reverse();