public class DynamicAnimation
extends java.lang.Object
| Constructor and Description |
|---|
DynamicAnimation(EasingFunction easingFunction,
EasingMode easingMode,
long duration,
float target) |
DynamicAnimation(EasingFunction easingFunction,
EasingMode easingMode,
long durationPerUnit,
float durationUnit,
float target) |
| Modifier and Type | Method and Description |
|---|---|
DynamicAnimation |
finish()
Immediately stop the animation and jump to the target value.
|
float |
getStart() |
float |
getTarget() |
float |
getValue()
Get the current value of the animation.
|
boolean |
isRunning() |
DynamicAnimation |
setTarget(float target)
Set the target value of the animation.
|
DynamicAnimation |
stop()
Stop the animation and keep the current value.
|
public DynamicAnimation(EasingFunction easingFunction, EasingMode easingMode, long duration, float target)
public DynamicAnimation(EasingFunction easingFunction, EasingMode easingMode, long durationPerUnit, float durationUnit, float target)
public float getStart()
public float getTarget()
public boolean isRunning()
public DynamicAnimation stop()
setTarget(float).public DynamicAnimation finish()
setTarget(float).public DynamicAnimation setTarget(float target)
target - The new target valuepublic float getValue()