androidx.core.animation
Interfaces
Animator.AnimatorListener |
An animation listener receives notifications from an animation. |
Animator.AnimatorPauseListener |
A pause listener receives notifications from an animation when the animation is |
Animator.AnimatorUpdateListener |
Implementors of this interface can add themselves as update listeners to an |
Interpolator |
An interpolator defines the rate of change of an animation. |
TimeAnimator.TimeListener |
Implementors of this interface can set themselves as update listeners to a |
TypeEvaluator |
Interface for use with the |
Classes
AccelerateDecelerateInterpolator |
An interpolator where the rate of change starts and ends slowly but accelerates through the middle. |
AccelerateInterpolator |
An interpolator where the rate of change starts out slowly and then accelerates. |
Animator |
This is the superclass for classes which provide basic support for animations which can be started, ended, and have |
AnimatorInflater |
This class is used to instantiate animator XML files into Animator objects. |
AnimatorListenerAdapter |
This adapter class provides empty implementations of the methods from |
AnimatorSet |
This class plays a set of |
AnimatorSet.Builder |
The |
AnimatorTestRule |
JUnit |
AnticipateInterpolator |
An interpolator where the change starts backward then flings forward. |
AnticipateOvershootInterpolator |
An interpolator where the change starts backward then flings forward and overshoots the target value and finally goes back to the final value. |
ArgbEvaluator |
This evaluator can be used to perform type interpolation between integer values that represent ARGB colors. |
BidirectionalTypeConverter |
Abstract base class used convert type T to another type V and back again. |
BounceInterpolator |
An interpolator where the change bounces at the end. |
CycleInterpolator |
Repeats the animation for a specified number of cycles. |
DecelerateInterpolator |
An interpolator where the rate of change starts out quickly and then decelerates. |
FloatArrayEvaluator |
This evaluator can be used to perform type interpolation between |
FloatEvaluator |
This evaluator can be used to perform type interpolation between |
FloatProperty |
An implementation of |
IntArrayEvaluator |
This evaluator can be used to perform type interpolation between |
IntEvaluator |
This evaluator can be used to perform type interpolation between |
IntProperty |
An implementation of |
Keyframe |
This class holds a time/value pair for an animation. |
LinearInterpolator |
An interpolator where the rate of change is constant |
ObjectAnimator |
This subclass of |
OvershootInterpolator |
An interpolator where the change flings forward and overshoots the last value then comes back. |
PathInterpolator |
An interpolator that can traverse a Path that extends from |
PointFEvaluator |
This evaluator can be used to perform type interpolation between |
PropertyValuesHolder |
This class holds information about a property and the values that that property should take on during an animation. |
RectEvaluator |
This evaluator can be used to perform type interpolation between |
TimeAnimator |
This class provides a simple callback mechanism to listeners that is synchronized with all other animators in the system. |
TypeConverter |
Abstract base class used convert type T to another type V. |
ValueAnimator |
This class provides a simple timing engine for running animations which calculate animated values and set them on target objects. |
Extension functions summary
inline Animator.AnimatorListener |
Animator.addListener(Add a listener to this Animator using the provided actions. |
Animator.AnimatorPauseListener |
Animator.addPauseListener(Add a pause and resume listener to this Animator using the provided actions. |
inline Animator.AnimatorListener |
Animator.doOnCancel(crossinline action: (animator: Animator) -> Unit)Add an action which will be invoked when the animation has been cancelled. |
inline Animator.AnimatorListener |
Add an action which will be invoked when the animation has ended. |
Animator.AnimatorPauseListener |
Add an action which will be invoked when the animation has been paused. |
inline Animator.AnimatorListener |
Animator.doOnRepeat(crossinline action: (animator: Animator) -> Unit)Add an action which will be invoked when the animation has repeated. |
Animator.AnimatorPauseListener |
Animator.doOnResume(action: (animator: Animator) -> Unit)Add an action which will be invoked when the animation has resumed after a pause. |
inline Animator.AnimatorListener |
Add an action which will be invoked when the animation has started. |
Extension functions
addListener
inline fun Animator.addListener(
crossinline onEnd: (animator: Animator) -> Unit = {},
crossinline onStart: (animator: Animator) -> Unit = {},
crossinline onCancel: (animator: Animator) -> Unit = {},
crossinline onRepeat: (animator: Animator) -> Unit = {}
): Animator.AnimatorListener
Add a listener to this Animator using the provided actions.
| Returns | |
|---|---|
Animator.AnimatorListener |
the |
addPauseListener
fun Animator.addPauseListener(
onResume: (animator: Animator) -> Unit = {},
onPause: (animator: Animator) -> Unit = {}
): Animator.AnimatorPauseListener
Add a pause and resume listener to this Animator using the provided actions.
| Returns | |
|---|---|
Animator.AnimatorPauseListener |
the |
doOnCancel
inline fun Animator.doOnCancel(crossinline action: (animator: Animator) -> Unit): Animator.AnimatorListener
Add an action which will be invoked when the animation has been cancelled.
| Returns | |
|---|---|
Animator.AnimatorListener |
the |
| See also | |
|---|---|
cancel |
doOnEnd
inline fun Animator.doOnEnd(crossinline action: (animator: Animator) -> Unit): Animator.AnimatorListener
Add an action which will be invoked when the animation has ended.
| Returns | |
|---|---|
Animator.AnimatorListener |
the |
| See also | |
|---|---|
end |
doOnPause
fun Animator.doOnPause(action: (animator: Animator) -> Unit): Animator.AnimatorPauseListener
Add an action which will be invoked when the animation has been paused.
| Returns | |
|---|---|
Animator.AnimatorPauseListener |
the |
| See also | |
|---|---|
pause |
doOnRepeat
inline fun Animator.doOnRepeat(crossinline action: (animator: Animator) -> Unit): Animator.AnimatorListener
Add an action which will be invoked when the animation has repeated.
| Returns | |
|---|---|
Animator.AnimatorListener |
the |
doOnResume
fun Animator.doOnResume(action: (animator: Animator) -> Unit): Animator.AnimatorPauseListener
Add an action which will be invoked when the animation has resumed after a pause.
| Returns | |
|---|---|
Animator.AnimatorPauseListener |
the |
| See also | |
|---|---|
resume |
doOnStart
inline fun Animator.doOnStart(crossinline action: (animator: Animator) -> Unit): Animator.AnimatorListener
Add an action which will be invoked when the animation has started.
| Returns | |
|---|---|
Animator.AnimatorListener |
the |
| See also | |
|---|---|
start |