Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example setting start velocity of a spring animation.
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