public class ObjectAnimatorCompat
extends java.lang.Object
ObjectAnimator introduced after API level 11 (for
PropertyValuesHolder) in a backward compatible fashion.| Modifier and Type | Method and Description |
|---|---|
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. |
public static android.animation.ObjectAnimator ofArgb(java.lang.Object target,
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.public static <T> android.animation.ObjectAnimator ofArgb(T target,
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.public static android.animation.ObjectAnimator ofFloat(java.lang.Object target,
java.lang.String xPropertyName,
java.lang.String yPropertyName,
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.public 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)
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.public static android.animation.ObjectAnimator ofInt(java.lang.Object target,
java.lang.String xPropertyName,
java.lang.String yPropertyName,
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.public 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)
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.