PlaceholderHighlight

A class which provides a brush to paint placeholder based on progress.

Types

Link copied to clipboard

Properties

Link copied to clipboard

The optional AnimationSpec to use when running the animation for this highlight.

Functions

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

Return the desired alpha value used for drawing the Brush returned from brush.

Link copied to clipboard
abstract fun brush(@FloatRange(from = 0.0, to = 1.0) progress: Float, size: Size): Brush

Return a Brush to draw for the given progress and size.