public class ArgbEvaluator extends Object implements TypeEvaluator
Constructor and Description |
---|
ArgbEvaluator() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(float fraction,
Object startValue,
Object endValue)
This function returns the calculated in-between value for a color
given integers that represent the start and end values in the four
bytes of the 32-bit int.
|
static ArgbEvaluator |
getInstance()
Returns an instance of
ArgbEvaluator that may be used in
ValueAnimator.setEvaluator(TypeEvaluator) . |
public static ArgbEvaluator getInstance()
ArgbEvaluator
that may be used in
ValueAnimator.setEvaluator(TypeEvaluator)
. The same instance may
be used in multiple Animator
s because it holds no state.ArgbEvalutor
.public Object evaluate(float fraction, Object startValue, Object endValue)
evaluate
in interface TypeEvaluator
fraction
- The fraction from the starting to the ending valuesstartValue
- A 32-bit int value representing colors in the
separate bytes of the parameterendValue
- A 32-bit int value representing colors in the
separate bytes of the parameter