Skip to content

Instantly share code, notes, and snippets.

@riggaroo
Created March 28, 2019 13:00
Show Gist options
  • Save riggaroo/d51d57625389c67ae2929cc5f134715e to your computer and use it in GitHub Desktop.
Save riggaroo/d51d57625389c67ae2929cc5f134715e to your computer and use it in GitHub Desktop.
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