# android.animation

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# android.animation

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/animation/package-summary "View this page in Kotlin")\|Java

These classes provide functionality for the property animation system, which allows you to animate object properties of any type.`int`,`float`, and hexadecimal color values are supported by default. You can animate any other type by telling the system how to calculate the values for that given type with a custom[TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator).

For more information, see the[Animation](https://developer.android.com/guide/topics/graphics/prop-animation)guide.

<br />

You can set many different types of interpolators (contained in[android.view.animation](https://developer.android.com/reference/android/view/animation/package-summary)), specify[keyframes](https://developer.android.com/reference/android/animation/Keyframe), or group animations to play sequentially or simultaneously (with[AnimatorSet](https://developer.android.com/reference/android/animation/AnimatorSet)) to further control your animation behaviors.

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Animator.AnimatorListener](https://developer.android.com/reference/android/animation/Animator.AnimatorListener)                                 | An animation listener receives notifications from an animation.                                                                                                                                                                                              |
| [Animator.AnimatorPauseListener](https://developer.android.com/reference/android/animation/Animator.AnimatorPauseListener)                       | A pause listener receives notifications from an animation when the animation is[paused](https://developer.android.com/reference/android/animation/Animator#pause())or[resumed](https://developer.android.com/reference/android/animation/Animator#resume()). |
| [LayoutTransition.TransitionListener](https://developer.android.com/reference/android/animation/LayoutTransition.TransitionListener)             | This interface is used for listening to starting and ending events for transitions.                                                                                                                                                                          |
| [TimeAnimator.TimeListener](https://developer.android.com/reference/android/animation/TimeAnimator.TimeListener)                                 | Implementors of this interface can set themselves as update listeners to a`TimeAnimator`instance to receive callbacks on every animation frame to receive the total time since the animator started and the delta time since the last frame.                 |
| [TimeInterpolator](https://developer.android.com/reference/android/animation/TimeInterpolator)                                                   | A time interpolator defines the rate of change of an animation.                                                                                                                                                                                              |
| [TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)\<T\>                                                    | Interface for use with the[ValueAnimator.setEvaluator(TypeEvaluator)](https://developer.android.com/reference/android/animation/ValueAnimator#setEvaluator(android.animation.TypeEvaluator))function.                                                        |
| [ValueAnimator.AnimatorUpdateListener](https://developer.android.com/reference/android/animation/ValueAnimator.AnimatorUpdateListener)           | Implementors of this interface can add themselves as update listeners to an`ValueAnimator`instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that`ValueAnimator`.                             |
| [ValueAnimator.DurationScaleChangeListener](https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener) | Listener interface for the system-wide scaling factor for Animator-based animations.                                                                                                                                                                         |

## Classes

|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Animator](https://developer.android.com/reference/android/animation/Animator)                                             | This is the superclass for classes which provide basic support for animations which can be started, ended, and have`AnimatorListeners`added to them.                                   |
| [AnimatorInflater](https://developer.android.com/reference/android/animation/AnimatorInflater)                             | This class is used to instantiate animator XML files into Animator objects.                                                                                                            |
| [AnimatorListenerAdapter](https://developer.android.com/reference/android/animation/AnimatorListenerAdapter)               | This adapter class provides empty implementations of the methods from[Animator.AnimatorListener](https://developer.android.com/reference/android/animation/Animator.AnimatorListener). |
| [AnimatorSet](https://developer.android.com/reference/android/animation/AnimatorSet)                                       | This class plays a set of[Animator](https://developer.android.com/reference/android/animation/Animator)objects in the specified order.                                                 |
| [AnimatorSet.Builder](https://developer.android.com/reference/android/animation/AnimatorSet.Builder)                       | The`Builder`object is a utility class to facilitate adding animations to a`AnimatorSet`along with the relationships between the various animations.                                    |
| [ArgbEvaluator](https://developer.android.com/reference/android/animation/ArgbEvaluator)                                   | This evaluator can be used to perform type interpolation between integer values that represent ARGB colors.                                                                            |
| [BidirectionalTypeConverter](https://developer.android.com/reference/android/animation/BidirectionalTypeConverter)\<T, V\> | Abstract base class used convert type T to another type V and back again.                                                                                                              |
| [FloatArrayEvaluator](https://developer.android.com/reference/android/animation/FloatArrayEvaluator)                       | This evaluator can be used to perform type interpolation between`float[]`values.                                                                                                       |
| [FloatEvaluator](https://developer.android.com/reference/android/animation/FloatEvaluator)                                 | This evaluator can be used to perform type interpolation between`float`values.                                                                                                         |
| [IntArrayEvaluator](https://developer.android.com/reference/android/animation/IntArrayEvaluator)                           | This evaluator can be used to perform type interpolation between`int[]`values.                                                                                                         |
| [IntEvaluator](https://developer.android.com/reference/android/animation/IntEvaluator)                                     | This evaluator can be used to perform type interpolation between`int`values.                                                                                                           |
| [Keyframe](https://developer.android.com/reference/android/animation/Keyframe)                                             | This class holds a time/value pair for an animation.                                                                                                                                   |
| [LayoutTransition](https://developer.android.com/reference/android/animation/LayoutTransition)                             | This class enables automatic animations on layout changes in ViewGroup objects.                                                                                                        |
| [ObjectAnimator](https://developer.android.com/reference/android/animation/ObjectAnimator)                                 | This subclass of[ValueAnimator](https://developer.android.com/reference/android/animation/ValueAnimator)provides support for animating properties on target objects.                   |
| [PointFEvaluator](https://developer.android.com/reference/android/animation/PointFEvaluator)                               | This evaluator can be used to perform type interpolation between`PointF`values.                                                                                                        |
| [PropertyValuesHolder](https://developer.android.com/reference/android/animation/PropertyValuesHolder)                     | This class holds information about a property and the values that that property should take on during an animation.                                                                    |
| [RectEvaluator](https://developer.android.com/reference/android/animation/RectEvaluator)                                   | This evaluator can be used to perform type interpolation between`Rect`values.                                                                                                          |
| [StateListAnimator](https://developer.android.com/reference/android/animation/StateListAnimator)                           | Lets you define a number of Animators that will run on the attached View depending on the View's drawable state.                                                                       |
| [TimeAnimator](https://developer.android.com/reference/android/animation/TimeAnimator)                                     | This class provides a simple callback mechanism to listeners that is synchronized with all other animators in the system.                                                              |
| [TypeConverter](https://developer.android.com/reference/android/animation/TypeConverter)\<T, V\>                           | Abstract base class used convert type T to another type V.                                                                                                                             |
| [ValueAnimator](https://developer.android.com/reference/android/animation/ValueAnimator)                                   | This class provides a simple timing engine for running animations which calculate animated values and set them on target objects.                                                      |

-

  ## Interfaces

  - [Animator.AnimatorListener](https://developer.android.com/reference/android/animation/Animator.AnimatorListener)
  - [Animator.AnimatorPauseListener](https://developer.android.com/reference/android/animation/Animator.AnimatorPauseListener)
  - [LayoutTransition.TransitionListener](https://developer.android.com/reference/android/animation/LayoutTransition.TransitionListener)
  - [TimeAnimator.TimeListener](https://developer.android.com/reference/android/animation/TimeAnimator.TimeListener)
  - [TimeInterpolator](https://developer.android.com/reference/android/animation/TimeInterpolator)
  - [TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)
  - [ValueAnimator.AnimatorUpdateListener](https://developer.android.com/reference/android/animation/ValueAnimator.AnimatorUpdateListener)
  - [ValueAnimator.DurationScaleChangeListener](https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener)
-

  ## Classes

  - [Animator](https://developer.android.com/reference/android/animation/Animator)
  - [AnimatorInflater](https://developer.android.com/reference/android/animation/AnimatorInflater)
  - [AnimatorListenerAdapter](https://developer.android.com/reference/android/animation/AnimatorListenerAdapter)
  - [AnimatorSet](https://developer.android.com/reference/android/animation/AnimatorSet)
  - [AnimatorSet.Builder](https://developer.android.com/reference/android/animation/AnimatorSet.Builder)
  - [ArgbEvaluator](https://developer.android.com/reference/android/animation/ArgbEvaluator)
  - [BidirectionalTypeConverter](https://developer.android.com/reference/android/animation/BidirectionalTypeConverter)
  - [FloatArrayEvaluator](https://developer.android.com/reference/android/animation/FloatArrayEvaluator)
  - [FloatEvaluator](https://developer.android.com/reference/android/animation/FloatEvaluator)
  - [IntArrayEvaluator](https://developer.android.com/reference/android/animation/IntArrayEvaluator)
  - [IntEvaluator](https://developer.android.com/reference/android/animation/IntEvaluator)
  - [Keyframe](https://developer.android.com/reference/android/animation/Keyframe)
  - [LayoutTransition](https://developer.android.com/reference/android/animation/LayoutTransition)
  - [ObjectAnimator](https://developer.android.com/reference/android/animation/ObjectAnimator)
  - [PointFEvaluator](https://developer.android.com/reference/android/animation/PointFEvaluator)
  - [PropertyValuesHolder](https://developer.android.com/reference/android/animation/PropertyValuesHolder)
  - [RectEvaluator](https://developer.android.com/reference/android/animation/RectEvaluator)
  - [StateListAnimator](https://developer.android.com/reference/android/animation/StateListAnimator)
  - [TimeAnimator](https://developer.android.com/reference/android/animation/TimeAnimator)
  - [TypeConverter](https://developer.android.com/reference/android/animation/TypeConverter)
  - [ValueAnimator](https://developer.android.com/reference/android/animation/ValueAnimator)