FadeAnimation

fun <T : ComponentView> FadeAnimation(    componentView: T,     fromOpacity: Number = componentView.opacity,     toOpacity: Number = componentView.opacity,     duration: Int = DEFAULT_ANIMATION_SPEED)

Creates a FadeAnimation for the given ComponentView.

Parameters

T

Generic ComponentView.

componentView

ComponentView to animate.

fromOpacity

Initial opacity. Default: Current ComponentView.opacity.

toOpacity

Resulting opacity. Default: Current ComponentView.opacity.

duration

Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.