Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshruesch/e5dd2b800e2111ecb62fc973f65f9d90 to your computer and use it in GitHub Desktop.
Save joshruesch/e5dd2b800e2111ecb62fc973f65f9d90 to your computer and use it in GitHub Desktop.
fun rotateViewForever(view: View) {
val animRotate = RotateAnimation(0f, 360f,
RotateAnimation.RELATIVE_TO_SELF, 0.5f,
RotateAnimation.RELATIVE_TO_SELF, 0.5f)
animRotate.duration = DefaultAnimationTime.millis()
animRotate.repeatMode = Animation.RESTART
view.startAnimation(animRotate)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment