Created
January 4, 2018 20:37
-
-
Save amanjeetsingh150/3c18cf376f3a81b42beea90215743170 to your computer and use it in GitHub Desktop.
A gist to describe the end listener of the spring animation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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