Compose Component

LinearWavyProgressIndicator

A determinate wavy progress indicator that shows how far a process has advanced.

LinearWavyProgressIndicator

Source set: Android
@Composable
public fun LinearWavyProgressIndicator(
    progress: () -> Float,
    modifier: Modifier = Modifier,
    color: Color = LinearWavyProgressIndicatorDefaults.color,
    trackColor: Color = Color.Unspecified,
    strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth,
    gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize,
    wavelength: Dp = LinearWavyProgressIndicatorDefaults.DeterminateWavelength,
)

Parameters

progress the progress of this indicator, where 0.0 represents no progress and 1.0 represents full progress. Values outside of this range are coerced into the range. Return a non-finite value, such as Float.NaN, while the progress is unknown to show an indeterminate indicator.
modifier the Modifier to be applied to this indicator
color the Color of the progress line
trackColor the Color of the track that the progress line hasn't reached yet. If Color.Unspecified, uses a less prominent shade of the content color provided by the nearest surface.
strokeWidth the thickness of the progress line and the track
gapSize the visible gap between the progress line and the track
wavelength the length of one wave

LinearWavyProgressIndicator

Source set: Android
@Composable
public fun LinearWavyProgressIndicator(
    modifier: Modifier = Modifier,
    color: Color = LinearWavyProgressIndicatorDefaults.color,
    trackColor: Color = Color.Unspecified,
    strokeWidth: Dp = LinearWavyProgressIndicatorDefaults.StrokeWidth,
    gapSize: Dp = LinearWavyProgressIndicatorDefaults.GapSize,
    wavelength: Dp = LinearWavyProgressIndicatorDefaults.IndeterminateWavelength,
)

Parameters

modifier the Modifier to be applied to this indicator
color the Color of the moving progress lines
trackColor the Color of the track behind the progress lines. If Color.Unspecified, uses a less prominent shade of the content color provided by the nearest surface.
strokeWidth the thickness of the progress lines and the track
gapSize the visible gap between the progress lines and the track
wavelength the length of one wave
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: