Example usage for Java android.animation ObjectAnimator fields, constructors, methods, implement or subclass
The text is from its open source code.
ObjectAnimator() Creates a new ObjectAnimator object. |
void | addListener(AnimatorListener listener) Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end. |
void | addPauseListener(AnimatorPauseListener listener) Adds a pause listener to this animator. |
void | addUpdateListener(AnimatorUpdateListener listener) Adds a listener to the set of listeners that are sent update events through the life of an animation. |
void | cancel() |
void | end() |
String | getPropertyName() Gets the name of the property that will be animated. |
ObjectAnimator | ofArgb(Object target, String propertyName, int... values) Constructs and returns an ObjectAnimator that animates between color values. |
ObjectAnimator | ofArgb(T target, Property Constructs and returns an ObjectAnimator that animates between color values. |
ObjectAnimator | ofFloat(Object target, String propertyName, float... values) Constructs and returns an ObjectAnimator that animates between float values. |
ObjectAnimator | ofFloat(T target, Property Constructs and returns an ObjectAnimator that animates between float values. |
ObjectAnimator | ofFloat(Object target, String xPropertyName, String yPropertyName, Path path) Constructs and returns an ObjectAnimator that animates coordinates along a Path using two properties. |
ObjectAnimator | ofFloat(T target, Property Constructs and returns an ObjectAnimator that animates coordinates along a Path using two properties. |
ObjectAnimator | ofInt(Object target, String propertyName, int... values) Constructs and returns an ObjectAnimator that animates between int values. |
ObjectAnimator | ofInt(T target, Property Constructs and returns an ObjectAnimator that animates between int values. |
ObjectAnimator | ofInt(Object target, String xPropertyName, String yPropertyName, Path path) Constructs and returns an ObjectAnimator that animates coordinates along a Path using two properties. |
ObjectAnimator | ofInt(T target, Property Constructs and returns an ObjectAnimator that animates coordinates along a Path using two properties. |
ObjectAnimator | ofObject(T target, Property Constructs and returns an ObjectAnimator that animates between Object values. |
ObjectAnimator | ofObject(Object target, String propertyName, TypeEvaluator evaluator, Object... values) Constructs and returns an ObjectAnimator that animates between Object values. |
ObjectAnimator | ofObject(Object target, String propertyName, @Nullable TypeConverter Constructs and returns an ObjectAnimator that animates a property along a Path . |
ObjectAnimator | ofObject(T target, Property Constructs and returns an ObjectAnimator that animates between Object values. |
ObjectAnimator | ofObject(T target, @NonNull Property Constructs and returns an ObjectAnimator that animates a property along a Path . |
ObjectAnimator | ofPropertyValuesHolder(Object target, PropertyValuesHolder... values) Constructs and returns an ObjectAnimator that animates between the sets of values specified in PropertyValueHolder objects. |
void | reverse() Plays the ValueAnimator in reverse. |
void | setAutoCancel(boolean cancel) autoCancel controls whether an ObjectAnimator will be canceled automatically when any other ObjectAnimator with the same target and properties is started. |
ObjectAnimator | setDuration(long duration) Sets the length of the animation. |
void | setEvaluator(TypeEvaluator value) The type evaluator to be used when calculating the animated values of this animation. |
void | setFloatValues(float... values) |
void | setInterpolator(TimeInterpolator value) The time interpolator used in calculating the elapsed fraction of this animation. |
void | setIntValues(int... values) |
void | setPropertyName(@NonNull String propertyName) Sets the name of the property that will be animated. |
void | setRepeatCount(int value) Sets how many times the animation should be repeated. |
void | setRepeatMode(@RepeatMode int value) Defines what this animation should do when it reaches the end. |
void | setStartDelay(long startDelay) The amount of time, in milliseconds, to delay starting the animation after #start() is called. |
void | setTarget(@Nullable Object target) |
void | setupStartValues() |
void | setValues(PropertyValuesHolder... values) Sets the values, per property, being animated between. |
void | start() |