public static class Animations.AnimationBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Animations.AnimationBuilder |
duration(long duration)
Specify that duration of the animation.
|
Animations.AnimationBuilder |
from(float from)
Specify that value that the DynamicValue will be animated from.
|
Animations.AnimationBuilder |
interpolator(Interpolator interpolator)
Specify that duration of the animation.
|
Animator |
start()
Start the animation and return a reference to the Animator
|
void |
startAndCancelPrevious(java.util.concurrent.atomic.AtomicReference<Animator> animatorRef)
Stop the previous animation and start a new one.
|
Animations.AnimationBuilder |
to(float to)
Specify that value that the DynamicValue will be animated to.
|
public Animations.AnimationBuilder to(float to)
public Animations.AnimationBuilder from(float from)
public Animations.AnimationBuilder duration(long duration)
public Animations.AnimationBuilder interpolator(Interpolator interpolator)
public Animator start()
public void startAndCancelPrevious(java.util.concurrent.atomic.AtomicReference<Animator> animatorRef)
animatorRef
- A reference to the previous animation. This will be changed to the new
animation.