Fade Animation
fun <T : ComponentView> FadeAnimation( componentView: T, fromOpacity: Number = componentView.opacity, toOpacity: Number = componentView.opacity, duration: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a FadeAnimation for the given ComponentView.
Parameters
T
Generic ComponentView.
component View
ComponentView to animate.
from Opacity
Initial opacity. Default: Current ComponentView.opacity.
to Opacity
Resulting opacity. Default: Current ComponentView.opacity.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.