ArcProgressIndicator

Composable Component

Indeterminate Material Design arc progress indicator.

Android
@Composable
public fun ArcProgressIndicator(
    modifier: Modifier = Modifier,
    startAngle: Float = ArcProgressIndicatorDefaults.IndeterminateStartAngle,
    endAngle: Float = ArcProgressIndicatorDefaults.IndeterminateEndAngle,
    angularDirection: AngularDirection = AngularDirection.CounterClockwise,
    colors: ProgressIndicatorColors = ProgressIndicatorDefaults.colors(),
    strokeWidth: Dp = ArcProgressIndicatorDefaults.IndeterminateStrokeWidth,
    gapSize: Dp = ArcProgressIndicatorDefaults.calculateRecommendedGapSize(strokeWidth),
)

Parameters

modifierModifier to be applied to the ArcProgressIndicator.
startAnglethe start angle of this progress indicator arc (specified in degrees). It is recommended to use ArcProgressIndicatorDefaults.IndeterminateStartAngle. Measured clockwise from the three o'clock position.
endAnglethe end angle of this progress indicator arc (specified in degrees). It is recommended to use ArcProgressIndicatorDefaults.IndeterminateEndAngle. Measured clockwise from the three o'clock position.
angularDirectionDetermines whether the animation is in the clockwise or counter-clockwise direction.
colorsProgressIndicatorColors that will be used to resolve the indicator and track color for this progress indicator.
strokeWidthThe stroke width for the progress indicator. The recommended value is ArcProgressIndicatorDefaults.IndeterminateStrokeWidth.
gapSizeThe size (in Dp) of the gap between the ends of the progress indicator and the track. The stroke end caps are not included in this distance.