Rotation Animation
class RotationAnimation<T : ComponentView>( componentView: T, fromAngle: Number = componentView.rotation, toAngle: Number = componentView.rotation, duration: Int = DEFAULT_ANIMATION_DURATION) : ComponentAnimation<T>
Content copied to clipboard
A rotation Animation.
Rotates ComponentView to given angle.
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.
Constructors
Link copied to clipboard
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.
Link copied to clipboard
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.