Created
January 4, 2018 20:14
-
-
Save amanjeetsingh150/acbfda47707b3b85cdea8fad12b30ae7 to your computer and use it in GitHub Desktop.
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
springForce = SpringForce(0f) | |
relative_layout.pivotX = 0f | |
relative_layout.pivotY = 0f | |
val springAnim = SpringAnimation(relative_layout, DynamicAnimation.ROTATION).apply { | |
springForce.dampingRatio = SpringForce.DAMPING_RATIO_HIGH_BOUNCY | |
springForce.stiffness = SpringForce.STIFFNESS_VERY_LOW | |
} | |
springAnim.spring = springForce | |
springAnim.setStartValue(80f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment