Created
March 5, 2019 22:00
-
-
Save joshruesch/e5dd2b800e2111ecb62fc973f65f9d90 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
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