public class LinearTimeBasedDoubleValueAnimator extends TimeBasedValueAnimator<Double>
TimeBasedValueAnimator that linearly animates a double value between two
values over a given time.endValue, startValue| Constructor and Description |
|---|
LinearTimeBasedDoubleValueAnimator(double start,
double finish,
long duration)
Construct a
LinearTimeBasedDoubleValueAnimator with the given
start and finish values, and the given duration in millseconds. |
| Modifier and Type | Method and Description |
|---|---|
Double |
calculateValue(double pc)
Calculates the value of the double based on the start, end and current
percentage.
|
hasFinished, isComplete, nextValue, resetpublic LinearTimeBasedDoubleValueAnimator(double start, double finish, long duration)
LinearTimeBasedDoubleValueAnimator with the given
start and finish values, and the given duration in millseconds.
The animation starts on the first call to makeNextValue()
and completes once duration ticks have been reached.start - start valuefinish - stop valueduration - in millisecondspublic Double calculateValue(double pc)
calculateValue in class TimeBasedValueAnimator<Double>pc - The percentagepc along between start and finish