Example usage for Java android.animation ValueAnimator fields, constructors, methods, implement or subclass
The text is from its open source code.
int | RESTART When the animation reaches the end and repeatCount is INFINITE or a positive value, the animation restarts from the beginning. |
int | REVERSE When the animation reaches the end and repeatCount is INFINITE or a positive value, the animation reverses direction on every iteration. |
int | INFINITE This value used used with the #setRepeatCount(int) property to repeat the animation indefinitely. |
ValueAnimator() Creates a new ValueAnimator object. |
void | addListener(AnimatorListener listener) Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end. |
void | addUpdateListener(AnimatorUpdateListener listener) Adds a listener to the set of listeners that are sent update events through the life of an animation. |
void | cancel() |
void | end() |
float | getAnimatedFraction() Returns the current animation fraction, which is the elapsed/interpolated fraction used in the most recent frame update on the animation. |
Object | getAnimatedValue() The most recent value calculated by this ValueAnimator when there is just one property being animated. |
Object | getAnimatedValue(String propertyName) The most recent value calculated by this ValueAnimator for propertyName . |
long | getCurrentPlayTime() Gets the current position of the animation in time, which is equal to the current time minus the time that the animation started. |
long | getDuration() Gets the length of the animation. |
TimeInterpolator | getInterpolator() Returns the timing interpolator that this ValueAnimator uses. |
PropertyValuesHolder[] | getValues() Returns the values that this ValueAnimator animates between. |
boolean | isRunning() |
boolean | isStarted() |
ValueAnimator | ofArgb(int... values) Constructs and returns a ValueAnimator that animates between color values. |
ValueAnimator | ofFloat(float... values) Constructs and returns a ValueAnimator that animates between float values. |
ValueAnimator | ofInt(int... values) Constructs and returns a ValueAnimator that animates between int values. |
ValueAnimator | ofPropertyValuesHolder(PropertyValuesHolder... values) Constructs and returns a ValueAnimator that animates between the values specified in the PropertyValuesHolder objects. |
void | removeAllListeners() Removes all #addListener(android.animation.Animator.AnimatorListener) listeners and #addPauseListener(android.animation.Animator.AnimatorPauseListener) pauseListeners from this object. |
void | removeAllUpdateListeners() Removes all listeners from the set listening to frame updates for this animation. |
void | setCurrentFraction(float fraction) Sets the position of the animation to the specified fraction. |
void | setCurrentPlayTime(long playTime) Sets the position of the animation to the specified point in time. |
ValueAnimator | setDuration(long duration) Sets the length of the animation. |
void | setEvaluator(TypeEvaluator value) The type evaluator to be used when calculating the animated values of this animation. |
void | setFloatValues(float... values) Sets float values that will be animated between. |
void | setInterpolator(TimeInterpolator value) The time interpolator used in calculating the elapsed fraction of this animation. |
void | setIntValues(int... values) Sets int values that will be animated between. |
void | setRepeatCount(int value) Sets how many times the animation should be repeated. |
void | setRepeatMode(@RepeatMode int value) Defines what this animation should do when it reaches the end. |
void | setStartDelay(long startDelay) The amount of time, in milliseconds, to delay starting the animation after #start() is called. |
void | setTarget(@Nullable Object target) Sets the target object whose property will be animated by this animation. |
void | setValues(PropertyValuesHolder... values) Sets the values, per property, being animated between. |
void | start() |