# CircularProgressBar-Compose **Repository Path**: wugemu_admin_admin/CircularProgressBar-Compose ## Basic Information - **Project Name**: CircularProgressBar-Compose - **Description**: 圆圈进度条 - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-13 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CircularProgressBar for Jetpack Compose [![](https://jitpack.io/v/hitanshu-dhawan/CircularProgressBar-Compose.svg)](https://jitpack.io/#hitanshu-dhawan/CircularProgressBar-Compose) [![CircleCI](https://circleci.com/gh/hitanshu-dhawan/CircularProgressBar-Compose.svg?style=svg)](https://circleci.com/gh/hitanshu-dhawan/CircularProgressBar-Compose) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/6ddeb07650b249cb9a6954919ce74c8e)](https://www.codacy.com/gh/hitanshu-dhawan/CircularProgressBar-Compose/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hitanshu-dhawan/CircularProgressBar-Compose&utm_campaign=Badge_Grade) An android library to easily add circular progress bar into your [Jetpack Compose](https://developer.android.com/jetpack/compose) apps. ## Have a Look

## Usage ```kotlin CircularProgressBar( modifier = Modifier.size(120.dp), progress = 30f, progressMax = 100f, progressBarColor = Color.Blue, progressBarWidth = 20.dp, backgroundProgressBarColor = Color.Gray, backgroundProgressBarWidth = 10.dp, roundBorder = true, startAngle = 90f ) ``` For animations, you can use any animation API provided by Compose depending on your animation scenario. ```kotlin val progress by animateFloatAsState(/* progress value */) CircularProgressBar( modifier = Modifier.size(120.dp), progress = progress, progressMax = 100f, progressBarColor = Color.Blue, progressBarWidth = 20.dp, backgroundProgressBarColor = Color.Gray, backgroundProgressBarWidth = 10.dp, roundBorder = true, startAngle = 90f ) ``` ## Supported Properties | Property | Type | Default | | ------------------------------- | ---------- | -------------- | | `progress` | Float | 0f | | `progressMax` | Float | 100f | | `progressBarColor` | Color | Color.Black | | `progressBarWidth` | Dp | 7.dp | | `backgroundProgressBarColor` | Color | Color.Gray | | `backgroundProgressBarWidth` | Dp | 3.dp | | `roundBorder` | Boolean | false | | `startAngle` | Float | 0f | ## Download Add JitPack repository to your root `build.gradle` file ``` allprojects { repositories { maven { url 'https://jitpack.io' } } } ``` Add the dependency to your app `build.gradle` file ``` dependencies { implementation 'com.github.hitanshu-dhawan:CircularProgressBar-Compose:1.0.0-rc01' } ``` ## Licence ``` Copyright (c) 2021 Hitanshu Dhawan Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```