# Animation.AnimationListener

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

# Animation.AnimationListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/animation/Animation.AnimationListener "View this page in Kotlin")\|Java

`
public
static


interface
Animation.AnimationListener
`  
`


`

|----------------------------------------------------|
| android.view.animation.Animation.AnimationListener |

<br />

*** ** * ** ***

<br />

An animation listener receives notifications from an animation. Notifications indicate animation related events, such as the end or the repetition of the animation.

<br />

## Summary

|                                                                                                                                                               ### Public methods                                                                                                                                                                ||
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onAnimationEnd](https://developer.android.com/reference/android/view/animation/Animation.AnimationListener#onAnimationEnd(android.view.animation.Animation))`(`[Animation](https://developer.android.com/reference/android/view/animation/Animation)` animation) ` <br /> Notifies the end of the animation.              |
| ` abstract void` | ` `[onAnimationRepeat](https://developer.android.com/reference/android/view/animation/Animation.AnimationListener#onAnimationRepeat(android.view.animation.Animation))`(`[Animation](https://developer.android.com/reference/android/view/animation/Animation)` animation) ` <br /> Notifies the repetition of the animation. |
| ` abstract void` | ` `[onAnimationStart](https://developer.android.com/reference/android/view/animation/Animation.AnimationListener#onAnimationStart(android.view.animation.Animation))`(`[Animation](https://developer.android.com/reference/android/view/animation/Animation)` animation) ` <br /> Notifies the start of the animation.        |

## Public methods

### onAnimationEnd

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

```
public abstract void onAnimationEnd (Animation animation)
```

<br />

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

<br />

<br />

|                              Parameters                               ||
|-------------|----------------------------------------------------------|
| `animation` | `Animation`: The animation which reached its end. <br /> |

### onAnimationRepeat

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

```
public abstract void onAnimationRepeat (Animation animation)
```

<br />

Notifies the repetition of the animation.

<br />

<br />

|                             Parameters                             ||
|-------------|-------------------------------------------------------|
| `animation` | `Animation`: The animation which was repeated. <br /> |

### onAnimationStart

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

```
public abstract void onAnimationStart (Animation animation)
```

<br />

Notifies the start of the animation.

<br />

<br />

|                       Parameters                        ||
|-------------|--------------------------------------------|
| `animation` | `Animation`: The started animation. <br /> |