Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
Created January 4, 2018 20:37
Show Gist options
  • Save amanjeetsingh150/3c18cf376f3a81b42beea90215743170 to your computer and use it in GitHub Desktop.
Save amanjeetsingh150/3c18cf376f3a81b42beea90215743170 to your computer and use it in GitHub Desktop.
A gist to describe the end listener of the spring animation.
springAnim.addEndListener(object : DynamicAnimation.OnAnimationEndListener {
override fun onAnimationEnd(animation: DynamicAnimation<out DynamicAnimation<*>>?,
canceled: Boolean, value: Float, velocity: Float) {
//Translation code will be here
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment