public static class ValueAnimator.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
duration_ |
private float |
end_value_ |
private android.view.animation.Interpolator |
interpolator_ |
private int |
repeat_count_ |
private int |
repeat_mode_ |
private float |
start_value_ |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ValueAnimator |
build()
Creates a
ValueAnimator with the arguments supplied to this builder. |
ValueAnimator.Builder |
set_count(float start,
float end,
int precision)
Set the start_animation and end floating point numbers to be animated
|
ValueAnimator.Builder |
set_duration(long duration)
Set the duration of the animation from start_animation to end
|
ValueAnimator.Builder |
set_interpolator(android.view.animation.Interpolator interpolator)
Set the interpolator to be used with the animation
|
ValueAnimator.Builder |
set_repeat(int repeat_mode,
int repeat_count)
Set repetition related variables.
|
private long duration_
private float start_value_
private float end_value_
private int repeat_mode_
private int repeat_count_
private android.view.animation.Interpolator interpolator_
public ValueAnimator.Builder set_count(float start, float end, int precision)
start - initial valueend - final valueprecision - number of decimal places to usepublic ValueAnimator.Builder set_duration(long duration)
duration - total duration of animation in mspublic ValueAnimator.Builder set_interpolator(@Nullable android.view.animation.Interpolator interpolator)
interpolator - Optional interpolator to setpublic ValueAnimator.Builder set_repeat(int repeat_mode, int repeat_count)
repeat_mode - The mode, either: REVERSE or REPEATrepeat_count - The amount of repetitions (set to 0 for none and INFINITE for never-ending)public ValueAnimator build()
ValueAnimator with the arguments supplied to this builder. It does not
ValueAnimator.execute(AnimateListener) the ValueAnimator.
Use ValueAnimator.execute(AnimateListener) to start_animation the animation