public class IterationAwareValueAnimator
We might want to apply particular value in animated fractions, e.g. suppose we want to animate value '5' in 5 seconds. That way it might be processed like '1 per second' or '2 after the first 2 seconds', then '1 after a second', '1 after a second', '1 after a second' etc.
Standard ValueAnimator doesn't allow that, so, we achieve that by the current class.
| Constructor and Description |
|---|
IterationAwareValueAnimator(int durationMillis,
android.animation.TimeInterpolator interpolator,
kotlin.jvm.functions.Function1<? super java.lang.Float,kotlin.Unit> listener)
We might want to apply particular value in animated fractions, e.g. suppose we want to animate value '5'
in 5 seconds. That way it might be processed like '1 per second' or '2 after the first 2 seconds', then
'1 after a second', '1 after a second', '1 after a second' etc.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
start(float valueToAnimate) |
public IterationAwareValueAnimator(int durationMillis,
@NotNull
android.animation.TimeInterpolator interpolator,
@NotNull
kotlin.jvm.functions.Function1<? super java.lang.Float,kotlin.Unit> listener)
We might want to apply particular value in animated fractions, e.g. suppose we want to animate value '5' in 5 seconds. That way it might be processed like '1 per second' or '2 after the first 2 seconds', then '1 after a second', '1 after a second', '1 after a second' etc.
Standard ValueAnimator doesn't allow that, so, we achieve that by the current class.