public class LinearTimeBasedLongValueAnimator extends TimeBasedValueAnimator<Long>
TimeBasedValueAnimator
that linearly animates a long value between two
values over a given time.endValue, startValue
Constructor and Description |
---|
LinearTimeBasedLongValueAnimator(long start,
long finish,
long duration)
Construct a
LinearTimeBasedLongValueAnimator with the given
start and finish values, and the given duration in millseconds. |
Modifier and Type | Method and Description |
---|---|
Long |
calculateValue(double pc)
Calculates the value of the long based on the start, end and current
percentage.
|
hasFinished, isComplete, nextValue, reset
public LinearTimeBasedLongValueAnimator(long start, long finish, long duration)
LinearTimeBasedLongValueAnimator
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 Long calculateValue(double pc)
calculateValue
in class TimeBasedValueAnimator<Long>
pc
- The percentagepc
along between start and finish