How i Draw Rectangle progress bar as a below in photo as CircleProgress indicator in android with JetpackCompose https://drive.google.com/file/d/1SXZcBp7uAesl-i6gHqFNXNpnc54Z6vdI/view?usp=share_link
CircularProgressIndicator(strokeWidth=10.dp,
progress = 1.0f,
color = Red,
modifier = Modifier.height(200.dp).width(200.dp).align(Alignment.Center))
You can change how to get progress for path progress i post an answer with 3 different alternatives
Result
First create a path and add Rounded rectangle
Then measure path using
Then draw this path and original Path as in implementation