public class ObjectAnimatorCompat
extends java.lang.Object
ObjectAnimator introduced after API level 11 (for
PropertyValuesHolder) in a backward compatible fashion.| 限定符和类型 | 方法和说明 |
|---|---|
static android.animation.ObjectAnimator |
ofArgb(java.lang.Object target,
java.lang.String propertyName,
int... values)
Constructs and returns an ObjectAnimator that animates between color values.
|
static <T> android.animation.ObjectAnimator |
ofArgb(T target,
android.util.Property<T,java.lang.Integer> property,
int... values)
Constructs and returns an ObjectAnimator that animates between color values.
|
static android.animation.ObjectAnimator |
ofFloat(java.lang.Object target,
java.lang.String xPropertyName,
java.lang.String yPropertyName,
android.graphics.Path path)
Constructs and returns an ObjectAnimator that animates coordinates along a
Path using
two properties. |
static <T> android.animation.ObjectAnimator |
ofFloat(T target,
android.util.Property<T,java.lang.Float> xProperty,
android.util.Property<T,java.lang.Float> yProperty,
android.graphics.Path path)
Constructs and returns an ObjectAnimator that animates coordinates along a
Path using
two properties. |
static android.animation.ObjectAnimator |
ofInt(java.lang.Object target,
java.lang.String xPropertyName,
java.lang.String yPropertyName,
android.graphics.Path path)
Constructs and returns an ObjectAnimator that animates coordinates along a
Path using
two properties. |
static <T> android.animation.ObjectAnimator |
ofInt(T target,
android.util.Property<T,java.lang.Integer> xProperty,
android.util.Property<T,java.lang.Integer> yProperty,
android.graphics.Path path)
Constructs and returns an ObjectAnimator that animates coordinates along a
Path using
two properties. |
@NonNull
public static android.animation.ObjectAnimator ofArgb(@Nullable
java.lang.Object target,
@NonNull
java.lang.String propertyName,
int... values)
target - The object whose property is to be animated. This object should have a public
method on it called setName(), where name is the value of the
propertyName parameter.propertyName - The name of the property being animated.values - A set of values that the animation will animate between over time.@NonNull
public static <T> android.animation.ObjectAnimator ofArgb(@Nullable
T target,
@NonNull
android.util.Property<T,java.lang.Integer> property,
int... values)
target - The object whose property is to be animated.property - The property being animated.values - A set of values that the animation will animate between over time.@NonNull
public static android.animation.ObjectAnimator ofFloat(@Nullable
java.lang.Object target,
@NonNull
java.lang.String xPropertyName,
@NonNull
java.lang.String yPropertyName,
@NonNull
android.graphics.Path path)
Path using
two properties. A Path animation moves in two dimensions, animating coordinates
(x, y) together to follow the line. In this variation, the coordinates are floats
that are set to separate properties designated by xPropertyName and
yPropertyName.target - The object whose properties are to be animated. This object should have public
methods on it called setNameX() and setNameY, where
nameX and nameY are the value of the xPropertyName and
yPropertyName parameters, respectively.xPropertyName - The name of the property for the x coordinate being animated.yPropertyName - The name of the property for the y coordinate being animated.path - The Path to animate values along.path.@NonNull
public static <T> android.animation.ObjectAnimator ofFloat(@Nullable
T target,
@NonNull
android.util.Property<T,java.lang.Float> xProperty,
@NonNull
android.util.Property<T,java.lang.Float> yProperty,
@NonNull
android.graphics.Path path)
Path using
two properties. A Path animation moves in two dimensions, animating coordinates
(x, y) together to follow the line. In this variation, the coordinates are floats
that are set to separate properties, xProperty and yProperty.target - The object whose properties are to be animated.xProperty - The property for the x coordinate being animated.yProperty - The property for the y coordinate being animated.path - The Path to animate values along.path.@NonNull
public static android.animation.ObjectAnimator ofInt(@Nullable
java.lang.Object target,
@NonNull
java.lang.String xPropertyName,
@NonNull
java.lang.String yPropertyName,
@NonNull
android.graphics.Path path)
Path using
two properties. A Path animation moves in two dimensions, animating coordinates
(x, y) together to follow the line. In this variation, the coordinates are integers
that are set to separate properties designated by xPropertyName and
yPropertyName.target - The object whose properties are to be animated. This object should have public
methods on it called setNameX() and setNameY, where
nameX and nameY are the value of xPropertyName and
yPropertyName parameters, respectively.xPropertyName - The name of the property for the x coordinate being animated.yPropertyName - The name of the property for the y coordinate being animated.path - The Path to animate values along.path.@NonNull
public static <T> android.animation.ObjectAnimator ofInt(@Nullable
T target,
@NonNull
android.util.Property<T,java.lang.Integer> xProperty,
@NonNull
android.util.Property<T,java.lang.Integer> yProperty,
@NonNull
android.graphics.Path path)
Path using
two properties. A Path animation moves in two dimensions, animating coordinates
(x, y) together to follow the line. In this variation, the coordinates are integers
that are set to separate properties, xProperty and yProperty.target - The object whose properties are to be animated.xProperty - The property for the x coordinate being animated.yProperty - The property for the y coordinate being animated.path - The Path to animate values along.path.