Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

AnimatorListenerAdapter

extends Object
implements Animator.AnimatorListener Animator.AnimatorPauseListener
java.lang.Object
   ↳ android.animation.AnimatorListenerAdapter

Class Overview

This adapter class provides empty implementations of the methods from Animator.AnimatorListener . Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Summary

Public Constructors
AnimatorListenerAdapter ()
Public Methods
void onAnimationCancel ( Animator animation)

Notifies the cancellation of the animation.

void onAnimationEnd ( Animator animation)

Notifies the end of the animation.

void onAnimationPause ( Animator animation)

Notifies that the animation was paused.

void onAnimationRepeat ( Animator animation)

Notifies the repetition of the animation.

void onAnimationResume ( Animator animation)

Notifies that the animation was resumed, after being previously paused.

void onAnimationStart ( Animator animation)

Notifies the start of the animation.

[Expand]
Inherited Methods
From class java.lang.Object
From interface android.animation.Animator.AnimatorListener
From interface android.animation.Animator.AnimatorPauseListener

Public Constructors

public AnimatorListenerAdapter ()

Public Methods

public void onAnimationCancel ( Animator animation)

Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

Parameters
animation The animation which was canceled.

public void onAnimationEnd ( Animator animation)

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

Parameters
animation The animation which reached its end.

public void onAnimationPause ( Animator animation)

Notifies that the animation was paused.

Parameters
animation The animaton being paused.

public void onAnimationRepeat ( Animator animation)

Notifies the repetition of the animation.

Parameters
animation The animation which was repeated.

public void onAnimationResume ( Animator animation)

Notifies that the animation was resumed, after being previously paused.

Parameters
animation The animation being resumed.

public void onAnimationStart ( Animator animation)

Notifies the start of the animation.

Parameters
animation The started animation.