CircularProgressIndicator

fun CircularProgressIndicator(@FloatRange(from = 0.0, to = 1.0) progress: Float, modifier: Modifier = Modifier, color: Color = Color.Black, strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth, backgroundColor: Color = Color.Transparent, strokeCap: StrokeCap = StrokeCap.Butt)

Determinate Material Design circular progress indicator.

Progress indicators express an unspecified wait time or display the length of a process.

![Circular progress indicator

  • image](https://developer.android.com/images/reference/androidx/compose/material/circular-progress-indicator.png)

By default there is no animation between progress values. You can use ProgressIndicatorDefaults.ProgressAnimationSpec as the default recommended AnimationSpec when animating progress, such as in the following example:

Parameters

progress

The progress of this progress indicator, where 0.0 represents no progress and 1.0 represents full progress. Values outside of this range are coerced into the range.

modifier

the Modifier to be applied to this progress indicator

color

The color of the progress indicator.

strokeWidth

The stroke width for 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.

strokeCap

stroke cap to use for the ends of this progress indicator

Samples

androidx.compose.material.samples.CircularProgressIndicatorSample
fun CircularProgressIndicator(modifier: Modifier = Modifier, color: Color = Color.Black, strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth, backgroundColor: Color = Color.Transparent, strokeCap: StrokeCap = StrokeCap.Square)

Indeterminate Material Design circular progress indicator.

Progress indicators express an unspecified wait time or display the length of a process.

![Circular progress indicator

  • image](https://developer.android.com/images/reference/androidx/compose/material/circular-progress-indicator.png)

Parameters

modifier

the Modifier to be applied to this progress indicator

color

The color of the progress indicator.

strokeWidth

The stroke width for 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.

strokeCap

stroke cap to use for the ends of this progress indicator