It is possible to change ObjectAnimator end value with the animation started?
Asked Answered
T

0

9

I have a object animator started, and I want to change the end value sometimes when the animation is started, but without stopping and restarting it.

How can this be achieved? I can't find any info on the web.

SAMPLE:

XMovement = ObjectAnimator.ofFloat(view, "x", startX, endX);                
XMovement.setDuration(ANIMATION_TIME);
XMovement.start();

and I want to change endX value in real time when the animation is started.

Tybie answered 11/2, 2015 at 14:36 Comment(1)
Hey, are you ended up recreating ObjectAnimator every time or find the way doing it realm-time?Carriole

© 2022 - 2024 — McMap. All rights reserved.