Stay organized with collections
Save and categorize content based on your preferences.
Animation.AnimationListener
public
static
interface
Animation.AnimationListener
android.view.animation.Animation.AnimationListener
|
An animation listener receives notifications from an animation.
Notifications indicate animation related events, such as the end or the
repetition of the animation.
Summary
Public methods
onAnimationEnd
public abstract void onAnimationEnd (Animation animation)
Notifies the end of the animation. This callback is not invoked
for animations with repeat count set to INFINITE.
Parameters |
animation |
Animation : The animation which reached its end. |
onAnimationRepeat
public abstract void onAnimationRepeat (Animation animation)
Notifies the repetition of the animation.
Parameters |
animation |
Animation : The animation which was repeated. |
onAnimationStart
public abstract void onAnimationStart (Animation animation)
Notifies the start of the animation.
Parameters |
animation |
Animation : The started animation. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Animation.AnimationListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAnimation.AnimationListener\n===========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/animation/Animation.AnimationListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAnimation.AnimationListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------|\n| android.view.animation.Animation.AnimationListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\nAn animation listener receives notifications from an animation.\nNotifications indicate animation related events, such as the end or the\nrepetition of the animation.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAnimationEnd](/reference/android/view/animation/Animation.AnimationListener#onAnimationEnd(android.view.animation.Animation))`(`[Animation](/reference/android/view/animation/Animation)` animation) ` \u003cbr /\u003e Notifies the end of the animation. |\n| ` abstract void` | ` `[onAnimationRepeat](/reference/android/view/animation/Animation.AnimationListener#onAnimationRepeat(android.view.animation.Animation))`(`[Animation](/reference/android/view/animation/Animation)` animation) ` \u003cbr /\u003e Notifies the repetition of the animation. |\n| ` abstract void` | ` `[onAnimationStart](/reference/android/view/animation/Animation.AnimationListener#onAnimationStart(android.view.animation.Animation))`(`[Animation](/reference/android/view/animation/Animation)` animation) ` \u003cbr /\u003e Notifies the start of the animation. |\n\nPublic methods\n--------------\n\n### onAnimationEnd\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAnimationEnd (Animation animation)\n```\n\n\u003cbr /\u003e\n\nNotifies the end of the animation. This callback is not invoked\nfor animations with repeat count set to INFINITE.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|----------------------------------------------------------|\n| `animation` | `Animation`: The animation which reached its end. \u003cbr /\u003e |\n\n### onAnimationRepeat\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAnimationRepeat (Animation animation)\n```\n\n\u003cbr /\u003e\n\nNotifies the repetition of the animation.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-------------------------------------------------------|\n| `animation` | `Animation`: The animation which was repeated. \u003cbr /\u003e |\n\n### onAnimationStart\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAnimationStart (Animation animation)\n```\n\n\u003cbr /\u003e\n\nNotifies the start of the animation.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------------------------------------|\n| `animation` | `Animation`: The started animation. \u003cbr /\u003e |"]]