public abstract class SupportAnimator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SupportAnimator.AnimatorListener
An animation listener receives notifications from an animation.
|
| Constructor and Description |
|---|
SupportAnimator() |
| 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 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).
|
abstract void |
setDuration(int duration)
Sets the duration of the animation.
|
abstract void |
setInterpolator(android.view.animation.Interpolator value)
The time interpolator used in calculating the elapsed fraction of the
animation.
|
abstract void |
start()
Starts this animation.
|
public abstract boolean isNativeAnimator()
public abstract java.lang.Object get()
Build.VERSION if sdk version
Build.VERSION_CODES.LOLLIPOP and greater will return
Animator otherwise com.nineoldandroids.animation.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.
public abstract void setDuration(int duration)
duration - The length of the animation, in milliseconds.public abstract void setInterpolator(android.view.animation.Interpolator value)
AccelerateDecelerateInterpolator.value - the interpolator to be used by this animationpublic 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()