LinearProgressIndicator

Composable Function
Android
@Composable
public fun LinearProgressIndicator(
    /*@FloatRange(from = 0.0, to = 1.0)*/
    progress: Float,
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider,
)

Adds a determinate linear progress indicator view to the glance view.

Parameters

progress of this progress indicator, where 0.0 represents no progress and 1.0 represents full progress
modifier the modifier to apply to the progress bar
color The color of the progress indicator.
backgroundColor The color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet.
Android
@Composable
public fun LinearProgressIndicator(
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider,
)

Adds an indeterminate linear progress indicator view to the glance view.

Parameters

modifier the modifier to apply to the progress bar
color The color of the progress indicator.
backgroundColor The color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet.