Created
March 28, 2019 13:00
-
-
Save riggaroo/d51d57625389c67ae2929cc5f134715e to your computer and use it in GitHub Desktop.
Example setting start velocity of a 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
SpringAnimation(this, floatPropertyAnimY, point.y).apply { | |
setStartVelocity(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 5000f, resources.displayMetrics)) | |
start() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment