public abstract class SupportAnimator
extends android.animation.Animator
| Modifier and Type | Class and Description |
|---|---|
static interface |
SupportAnimator.AnimatorListener
An animation listener receives notifications from an animation.
|
static class |
SupportAnimator.SimpleAnimatorListener
Provides default implementation for AnimatorListener.
|
| Constructor and Description |
|---|
SupportAnimator(RevealAnimator target) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addListener(SupportAnimator.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.
|
abstract void |
cancel()
Cancels the animation.
|
void |
end()
Ends the animation.
|
abstract java.lang.Object |
get() |
abstract boolean |
isNativeAnimator() |
abstract boolean |
isRunning()
Returns whether this Animator is currently running (having been started and gone past any
initial startDelay period and not yet ended).
|
SupportAnimator |
reverse()
Experimental feature
|
void |
setupEndValues()
This method tells the object to use appropriate information to extract
ending values for the animation.
|
void |
setupStartValues()
This method tells the object to use appropriate information to extract
starting values for the animation.
|
abstract void |
start()
Starts this animation.
|
addListener, addPauseListener, clone, getDuration, getInterpolator, getListeners, getStartDelay, isPaused, isStarted, pause, removeAllListeners, removeListener, removePauseListener, resume, setDuration, setInterpolator, setStartDelay, setTargetpublic SupportAnimator(RevealAnimator target)
public abstract boolean isNativeAnimator()
public abstract java.lang.Object get()
Build.VERSION if sdk version
Build.VERSION_CODES.LOLLIPOP and greater will return
Animatorpublic abstract void start()
Animator.AnimatorListener.onAnimationStart(android.animation.Animator)
for any listeners of this animator.
The animation started by calling this method will be run on the thread that called this method. This thread should have a Looper on it (a runtime exception will be thrown if this is not the case). Also, if the animation will animate properties of objects in the view hierarchy, then the calling thread should be the UI thread for that view hierarchy.
start in class android.animation.Animatorpublic abstract void addListener(SupportAnimator.AnimatorListener listener)
listener - the listener to be added to the current set of listeners for this animation.public abstract boolean isRunning()
isRunning in class android.animation.Animatorpublic abstract void cancel()
end(), cancel() causes the animation to
stop in its tracks, sending an
SupportAnimator.AnimatorListener.onAnimationCancel() to
its listeners, followed by an
SupportAnimator.AnimatorListener.onAnimationEnd() message.
This method must be called on the thread that is running the animation.
cancel in class android.animation.Animatorpublic void end()
SupportAnimator.AnimatorListener.onAnimationEnd() method on
its listeners.
This method must be called on the thread that is running the animation.
end in class android.animation.Animatorpublic void setupStartValues()
setupStartValues in class android.animation.Animatorpublic void setupEndValues()
setupEndValues in class android.animation.Animatorpublic SupportAnimator reverse()