Most visited

Recently visited

Added in API level 11

ArgbEvaluator

public class ArgbEvaluator
extends Object implements TypeEvaluator

java.lang.Object
   ↳ android.animation.ArgbEvaluator


此评估器可用于执行表示ARGB颜色的整数值之间的类型插值。

Summary

Public constructors

ArgbEvaluator()

Public methods

Object evaluate(float fraction, Object startValue, Object endValue)

此函数返回给定整数的颜色的中间值,该整数代表32位整数的四个字节中的起始值和结束值。

Inherited methods

From class java.lang.Object
From interface android.animation.TypeEvaluator

Public constructors

ArgbEvaluator

Added in API level 11
ArgbEvaluator ()

Public methods

evaluate

Added in API level 11
Object evaluate (float fraction, 
                Object startValue, 
                Object endValue)

此函数返回给定整数的颜色的中间值,该整数代表32位整数的四个字节中的起始值和结束值。 每个通道分别进行线性内插,并将得到的计算值重新组合为返回值。

Parameters
fraction float: The fraction from the starting to the ending values
startValue Object: A 32-bit int value representing colors in the separate bytes of the parameter
endValue Object: A 32-bit int value representing colors in the separate bytes of the parameter
Returns
Object A value that is calculated to be the linearly interpolated result, derived by separating the start and end values into separate color channels and interpolating each one separately, recombining the resulting values in the same way.

Hooray!