https://github.com/samlss/circleprogressview
⭕A circle progress view.
https://github.com/samlss/circleprogressview
android progressview
Last synced: 7 months ago
JSON representation
⭕A circle progress view.
- Host: GitHub
- URL: https://github.com/samlss/circleprogressview
- Owner: samlss
- License: mit
- Created: 2018-08-15T10:09:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T11:52:24.000Z (over 7 years ago)
- Last Synced: 2025-04-08T11:37:59.247Z (10 months ago)
- Topics: android, progressview
- Language: Java
- Homepage:
- Size: 176 KB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-ZH.md
- License: LICENSE
Awesome Lists containing this project
README
## CircleProgressView
一个简约的圆圈进度view
[](https://github.com/samlss/CircleProgressView) [](https://github.com/samlss/CircleProgressView/blob/master/LICENSE) [](https://blog.csdn.net/Samlss)

## 使用
在根目录的build.gradle添加这一句代码:
```
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
```
在app目录下的build.gradle添加依赖使用:
```
dependencies {
implementation 'com.github.samlss:CircleProgressView:1.0'
}
```
## 属性说明:
| 属性 | 说明 |
| ------------- |:-------------:|
| circleColor | 设置后面圆的颜色 |
| progress | 设置进度,范围为0-100 |
| progressColor | 设置旋转的进度条的颜色 |
| progressTextColor | 设置进度文本颜色 |
| progressTextSize | 设置进度文本大小 |
## 布局中使用:
```
```
## 代码中使用:
```
circleProgressView.setProgress(int progress); //设置进度,范围为0-100
circleProgressView.setProgressColor(Color.RED); //设置旋转的
circleProgressView.setProgressTextColor(Color.RED); // 设置进度文本颜色
circleProgressView.setProgressTextSize(20); //设置进度文本大小
```
## [LICENSE](https://github.com/samlss/CircleProgressView/blob/master/LICENSE)