ScaleAnimation

fun <T : ComponentView> ScaleAnimation(    componentView: T,     byScaleX: Number = 0.0,     byScaleY: Number = 0.0,     duration: Int = 1000)

A scale animation. Scales given ComponentView to given scalar.

Parameters

componentView

ComponentView to animate

byScaleX

Relative X scale.

byScaleY

Relative Y scale.

duration

Animation duration in milliseconds. Default: 1 second


fun <T : ComponentView> ScaleAnimation(    componentView: T,     byScale: Number = 0.0,     duration: Int = 1000)

A scale animation. Scales given ComponentView to given scalar.

Parameters

componentView

ComponentView to animate

byScale

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)

Creates a ScaleAnimation for the given ComponentView.

Parameters

T

Generic ComponentView.

componentView

ComponentView to animate

fromScaleX

Initial X position. Default: Current ComponentView.posX.

toScaleX

Resulting X position. Default: Current ComponentView.posX.

fromScaleY

Initial Y position. Default: Current ComponentView.posY.

toScaleY

Resulting Y position. Default: Current ComponentView.posY.

duration

Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.