Implementors of this interface can add themselves as update listeners
to an DynamicAnimation instance to receive callbacks on every animation
frame, after the current frame's values have been calculated for that
DynamicAnimation.
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,["# DynamicAnimation.OnAnimationUpdateListener\n\nadded in [version 25.4.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact com.android.support:support-dynamic-animation:28.0.0-alpha1 \n\nDynamicAnimation.OnAnimationUpdateListener\n==========================================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\nstatic\n\n\ninterface\nDynamicAnimation.OnAnimationUpdateListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------------------|\n| android.support.animation.DynamicAnimation.OnAnimationUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nImplementors of this interface can add themselves as update listeners\nto an `DynamicAnimation` instance to receive callbacks on every animation\nframe, after the current frame's values have been calculated for that\n`DynamicAnimation`.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAnimationUpdate](/reference/android/support/animation/DynamicAnimation.OnAnimationUpdateListener#onAnimationUpdate(android.support.animation.DynamicAnimation, float, float))`(`[DynamicAnimation](/reference/android/support/animation/DynamicAnimation)` animation, float value, float velocity) ` Notifies the occurrence of another frame of the animation. |\n\nPublic methods\n--------------\n\n### onAnimationUpdate\n\nadded in [version 25.4.0](/topic/libraries/support-library/revisions) \n\n```\nvoid onAnimationUpdate (DynamicAnimation animation, \n float value, \n float velocity)\n```\n\nNotifies the occurrence of another frame of the animation.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------|\n| `animation` | `DynamicAnimation`: animation that the update listener is added to \u003cbr /\u003e |\n| `value` | `float`: the current value of the animation \u003cbr /\u003e |\n| `velocity` | `float`: the current velocity of the animation \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [DynamicAnimation.OnAnimationEndListener](/reference/android/support/animation/DynamicAnimation.OnAnimationEndListener)\n - [DynamicAnimation.OnAnimationUpdateListener](/reference/android/support/animation/DynamicAnimation.OnAnimationUpdateListener)\n-\n\n Classes\n -------\n\n - [DynamicAnimation](/reference/android/support/animation/DynamicAnimation)\n - [DynamicAnimation.ViewProperty](/reference/android/support/animation/DynamicAnimation.ViewProperty)\n - [FlingAnimation](/reference/android/support/animation/FlingAnimation)\n - [FloatPropertyCompat](/reference/android/support/animation/FloatPropertyCompat)\n - [FloatValueHolder](/reference/android/support/animation/FloatValueHolder)\n - [SpringAnimation](/reference/android/support/animation/SpringAnimation)\n - [SpringForce](/reference/android/support/animation/SpringForce)"]]