Rename RGBEvaluator to ArgbEvaluator
Change-Id: Iee74b475960d623fa757349e4053bd7c58cf5734
This commit is contained in:
@@ -19985,6 +19985,42 @@
|
|||||||
</parameter>
|
</parameter>
|
||||||
</method>
|
</method>
|
||||||
</class>
|
</class>
|
||||||
|
<class name="ArgbEvaluator"
|
||||||
|
extends="java.lang.Object"
|
||||||
|
abstract="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
<implements name="android.animation.TypeEvaluator">
|
||||||
|
</implements>
|
||||||
|
<constructor name="ArgbEvaluator"
|
||||||
|
type="android.animation.ArgbEvaluator"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</constructor>
|
||||||
|
<method name="evaluate"
|
||||||
|
return="java.lang.Object"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
<parameter name="fraction" type="float">
|
||||||
|
</parameter>
|
||||||
|
<parameter name="startValue" type="java.lang.Object">
|
||||||
|
</parameter>
|
||||||
|
<parameter name="endValue" type="java.lang.Object">
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
</class>
|
||||||
<class name="DoubleEvaluator"
|
<class name="DoubleEvaluator"
|
||||||
extends="java.lang.Object"
|
extends="java.lang.Object"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -20951,42 +20987,6 @@
|
|||||||
</parameter>
|
</parameter>
|
||||||
</method>
|
</method>
|
||||||
</class>
|
</class>
|
||||||
<class name="RGBEvaluator"
|
|
||||||
extends="java.lang.Object"
|
|
||||||
abstract="false"
|
|
||||||
static="false"
|
|
||||||
final="false"
|
|
||||||
deprecated="not deprecated"
|
|
||||||
visibility="public"
|
|
||||||
>
|
|
||||||
<implements name="android.animation.TypeEvaluator">
|
|
||||||
</implements>
|
|
||||||
<constructor name="RGBEvaluator"
|
|
||||||
type="android.animation.RGBEvaluator"
|
|
||||||
static="false"
|
|
||||||
final="false"
|
|
||||||
deprecated="not deprecated"
|
|
||||||
visibility="public"
|
|
||||||
>
|
|
||||||
</constructor>
|
|
||||||
<method name="evaluate"
|
|
||||||
return="java.lang.Object"
|
|
||||||
abstract="false"
|
|
||||||
native="false"
|
|
||||||
synchronized="false"
|
|
||||||
static="false"
|
|
||||||
final="false"
|
|
||||||
deprecated="not deprecated"
|
|
||||||
visibility="public"
|
|
||||||
>
|
|
||||||
<parameter name="fraction" type="float">
|
|
||||||
</parameter>
|
|
||||||
<parameter name="startValue" type="java.lang.Object">
|
|
||||||
</parameter>
|
|
||||||
<parameter name="endValue" type="java.lang.Object">
|
|
||||||
</parameter>
|
|
||||||
</method>
|
|
||||||
</class>
|
|
||||||
<interface name="TimeInterpolator"
|
<interface name="TimeInterpolator"
|
||||||
abstract="true"
|
abstract="true"
|
||||||
static="false"
|
static="false"
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ public class AnimatorInflater {
|
|||||||
(toType <= TypedValue.TYPE_LAST_COLOR_INT))) {
|
(toType <= TypedValue.TYPE_LAST_COLOR_INT))) {
|
||||||
// special case for colors: ignore valueType and get ints
|
// special case for colors: ignore valueType and get ints
|
||||||
getFloats = false;
|
getFloats = false;
|
||||||
anim.setEvaluator(new RGBEvaluator());
|
anim.setEvaluator(new ArgbEvaluator());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getFloats) {
|
if (getFloats) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ package android.animation;
|
|||||||
* This evaluator can be used to perform type interpolation between integer
|
* This evaluator can be used to perform type interpolation between integer
|
||||||
* values that represent ARGB colors.
|
* values that represent ARGB colors.
|
||||||
*/
|
*/
|
||||||
public class RGBEvaluator implements TypeEvaluator {
|
public class ArgbEvaluator implements TypeEvaluator {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function returns the calculated in-between value for a color
|
* This function returns the calculated in-between value for a color
|
||||||
@@ -862,7 +862,7 @@ public class ValueAnimator extends Animator {
|
|||||||
* of <code>startValue</code> and <code>endValue</code> in the constructor. But if these values
|
* of <code>startValue</code> and <code>endValue</code> in the constructor. But if these values
|
||||||
* are not one of these primitive types, or if different evaluation is desired (such as is
|
* are not one of these primitive types, or if different evaluation is desired (such as is
|
||||||
* necessary with int values that represent colors), a custom evaluator needs to be assigned.
|
* necessary with int values that represent colors), a custom evaluator needs to be assigned.
|
||||||
* For example, when running an animation on color values, the {@link RGBEvaluator}
|
* For example, when running an animation on color values, the {@link ArgbEvaluator}
|
||||||
* should be used to get correct RGB color interpolation.
|
* should be used to get correct RGB color interpolation.
|
||||||
*
|
*
|
||||||
* <p>If this ValueAnimator has only one set of values being animated between, this evaluator
|
* <p>If this ValueAnimator has only one set of values being animated between, this evaluator
|
||||||
|
|||||||
Reference in New Issue
Block a user