to top
Android APIs
Added in API level 11
package

android.animation

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.

For more information, see the Animation guide.

You can set many different types of interpolators (contained in android.view.animation), specify keyframes, or group animations to play sequentially or simultaneously (with AnimatorSet) to further control your animation behaviors.

Interfaces

Animator.AnimatorListener

An animation listener receives notifications from an animation. 

LayoutTransition.TransitionListener This interface is used for listening to starting and ending events for transitions. 
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 A time interpolator defines the rate of change of an animation. 
TypeEvaluator<T> Interface for use with the setEvaluator(TypeEvaluator) function. 
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

Classes

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 This class is used to instantiate animator XML files into Animator objects. 
AnimatorListenerAdapter This adapter class provides empty implementations of the methods from Animator.AnimatorListener
AnimatorSet This class plays a set of Animator objects in the specified order. 
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 This evaluator can be used to perform type interpolation between integer values that represent ARGB colors. 
FloatEvaluator This evaluator can be used to perform type interpolation between float values. 
IntEvaluator This evaluator can be used to perform type interpolation between int values. 
Keyframe This class holds a time/value pair for an animation. 
LayoutTransition This class enables automatic animations on layout changes in ViewGroup objects. 
ObjectAnimator This subclass of ValueAnimator provides support for animating properties on target objects. 
PropertyValuesHolder This class holds information about a property and the values that that property should take on during an animation. 
TimeAnimator This class provides a simple callback mechanism to listeners that is synchronized with all other animators in the system. 
ValueAnimator This class provides a simple timing engine for running animations which calculate animated values and set them on target objects.