Rotation Animation
fun <T : ComponentView> RotationAnimation( componentView: T, byAngle: Double = 0.0, duration: Int = 1000)
Content copied to clipboard
A rotation animation. Rotates given ComponentView to given angle.
Parameters
component View
ComponentView to animate
by Angle
relative angle. Default: 0
duration
Animation duration in milliseconds. Default: 1 second
fun <T : ComponentView> RotationAnimation( componentView: T, fromAngle: Number = componentView.rotation, toAngle: Number = componentView.rotation, duration: Int = DEFAULT_ANIMATION_DURATION)
Content copied to clipboard
Creates a RotationAnimation for the given ComponentView.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate.
from Angle
Initial angle. Default: Current ComponentView.rotation.
to Angle
Resulting angle. Default: Current ComponentView.rotation.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_DURATION.