Scale Animation
fun <T : ComponentView> ScaleAnimation( componentView: T, byScaleX: Number = 0.0, byScaleY: Number = 0.0, duration: Int = 1000)
Content copied to clipboard
A scale animation. Scales given ComponentView to given scalar.
Parameters
component View
ComponentView to animate
by Scale X
Relative X scale.
by Scale Y
Relative Y scale.
duration
Animation duration in milliseconds. Default: 1 second
fun <T : ComponentView> ScaleAnimation( componentView: T, byScale: Number = 0.0, duration: Int = 1000)
Content copied to clipboard
A scale animation. Scales given ComponentView to given scalar.
Parameters
component View
ComponentView to animate
by Scale
Relative scale.
duration
Animation duration in milliseconds. Default: 1 second
fun <T : ComponentView> ScaleAnimation( componentView: T, fromScaleX: Number = componentView.scaleX, toScaleX: Number = componentView.scaleX, fromScaleY: Number = componentView.scaleY, toScaleY: Number = componentView.scaleY, duration: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a ScaleAnimation for the given ComponentView.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate
from Scale X
Initial X position. Default: Current ComponentView.posX.
to Scale X
Resulting X position. Default: Current ComponentView.posX.
from Scale Y
Initial Y position. Default: Current ComponentView.posY.
to Scale Y
Resulting Y position. Default: Current ComponentView.posY.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.