animateAlpha

open fun animateAlpha(toAlpha: Float)(source)

Animates the alpha from the current value to the specified one.

Calling setAlpha during the animation will cancel the existing alpha animation.

Parameters

toAlpha

The alpha that will be animated to. The range is [0, 1].