Example usage for Java android.animation Animator fields, constructors, methods, implement or subclass
The text is from its open source code.
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 | cancel() Cancels the animation. |
void | end() Ends the animation. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
long | getDuration() Gets the duration of the animation. |
ArrayList | getListeners() Gets the set of android.animation.Animator.AnimatorListener objects that are currently listening for events on this Animator object. |
long | getStartDelay() The amount of time, in milliseconds, to delay processing the animation after #start() is called. |
boolean | isPaused() Returns whether this animator is currently in a paused state. |
boolean | isRunning() Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended). |
boolean | isStarted() Returns whether this Animator has been started and not yet ended. |
void | pause() Pauses a running animation. |
void | removeAllListeners() Removes all #addListener(android.animation.Animator.AnimatorListener) listeners and #addPauseListener(android.animation.Animator.AnimatorPauseListener) pauseListeners from this object. |
void | removeListener(AnimatorListener listener) Removes a listener from the set listening to this animation. |
void | resume() Resumes a paused animation, causing the animator to pick up where it left off when it was paused. |
Animator | setDuration(long duration) Sets the duration of the animation. |
void | setInterpolator(TimeInterpolator value) The time interpolator used in calculating the elapsed fraction of the animation. |
void | setStartDelay(long startDelay) The amount of time, in milliseconds, to delay processing the animation after #start() is called. |
void | setTarget(@Nullable Object target) Sets the target object whose property will be animated by this animation. |
void | setupStartValues() This method tells the object to use appropriate information to extract starting values for the animation. |
void | start() Starts this animation. |