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
modifier | Modifier to be applied to the ArcProgressIndicator. |
startAngle | the 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. |
endAngle | the 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. |
angularDirection | Determines whether the animation is in the clockwise or counter-clockwise direction. |
colors | ProgressIndicatorColors that will be used to resolve the indicator and track color for this progress indicator. |
strokeWidth | The stroke width for the progress indicator. The recommended value is ArcProgressIndicatorDefaults.IndeterminateStrokeWidth . |
gapSize | The 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. |
Create your own Component Library
Material Components are meant to be used as is and they do not allow customizations. To build your own Jetpack Compose component library use Compose Unstyled