public abstract class SupportAnimator
extends java.lang.Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
SupportAnimator.AnimatorListener
An animation listener receives notifications from an animation.
|
static class |
SupportAnimator.SimpleAnimatorListener
Provides default implementation for AnimatorListener.
|
| コンストラクタと説明 |
|---|
SupportAnimator(RevealAnimator target) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
|
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.
|
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.
|
public 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
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()
public 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.
public void end()
SupportAnimator.AnimatorListener.onAnimationEnd() method on
its listeners.
This method must be called on the thread that is running the animation.
public void setupStartValues()
public void setupEndValues()
public SupportAnimator reverse()