public class LottieValueAnimator
extends android.animation.ValueAnimator
ValueAnimator that allows us to update start and end values
easily optimizing for the fact that we know that it's a value animator with 2 floats.| Constructor and Description |
|---|
LottieValueAnimator() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceUpdate()
Forces the animation to update even if the progress hasn't changed.
|
float |
getMaxProgress() |
float |
getMinProgress() |
float |
getProgress() |
void |
resumeAnimation() |
android.animation.ValueAnimator |
setDuration(long duration) |
void |
setIsReversed(boolean isReversed) |
void |
setMaxProgress(float maxProgress) |
void |
setMinProgress(float minProgress) |
void |
setProgress(float progress)
This progress is from 0 to 1 and doesn't take into account setMinProgress or setMaxProgress.
|
void |
start() |
void |
systemAnimationsAreDisabled() |
void |
updateValues(float startProgress,
float endProgress)
This lets you set the start and end progress for a single play of the animator.
|
addUpdateListener, areAnimatorsEnabled, cancel, clone, end, getAnimatedFraction, getAnimatedValue, getAnimatedValue, getCurrentPlayTime, getDuration, getFrameDelay, getInterpolator, getRepeatCount, getRepeatMode, getStartDelay, getTotalDuration, getValues, isRunning, isStarted, ofArgb, ofFloat, ofInt, ofObject, ofPropertyValuesHolder, pause, removeAllUpdateListeners, removeUpdateListener, resume, reverse, setCurrentFraction, setCurrentPlayTime, setEvaluator, setFloatValues, setFrameDelay, setInterpolator, setIntValues, setObjectValues, setRepeatCount, setRepeatMode, setStartDelay, setValues, toStringpublic void start()
start in class android.animation.ValueAnimatorpublic void systemAnimationsAreDisabled()
public android.animation.ValueAnimator setDuration(long duration)
setDuration in class android.animation.ValueAnimatorpublic void setProgress(float progress)
public void forceUpdate()
public float getProgress()
public void setIsReversed(boolean isReversed)
public void setMinProgress(float minProgress)
public void setMaxProgress(float maxProgress)
public float getMinProgress()
public float getMaxProgress()
public void resumeAnimation()
public void updateValues(float startProgress,
float endProgress)
setMinProgress(float) or setMaxProgress(float).