alpha

@FloatRange(from = 0.0, to = 1.0)
abstract fun alpha(progress: Float): Float

Returns the alpha (opacity) of the highlight at the current animation progress.

This allows the highlight to fade in/out during the animation cycle.

Return

The alpha value in the range 0.0 (transparent) to 1.0 (opaque)

Parameters

progress

The current animation progress in the range 0.0 to 1.0