Last active
October 31, 2018 05:08
-
-
Save sagar-viradiya/ae4062b9aa44e569b73dbd503f4b7bc7 to your computer and use it in GitHub Desktop.
Usage of SpringAnimation extension function
This file contains hidden or 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
val springAnimation = SpringAnimation(view, DynamicAnimation.TRANSLATION_X) | |
.withSpringForceProperties { | |
finalPosition = 0f | |
stiffness = SpringForce.STIFFNESS_MEDIUM | |
dampingRatio = SpringForce.DAMPING_RATIO_HIGH_BOUNCY | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment