https://github.com/samlss/donutprogressview
⭕A progress view that you can use it when you are loading picture.
https://github.com/samlss/donutprogressview
android progressview
Last synced: 8 months ago
JSON representation
⭕A progress view that you can use it when you are loading picture.
- Host: GitHub
- URL: https://github.com/samlss/donutprogressview
- Owner: samlss
- License: mit
- Created: 2018-08-13T02:59:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-13T03:20:32.000Z (over 7 years ago)
- Last Synced: 2025-03-02T01:43:24.483Z (11 months ago)
- Topics: android, progressview
- Language: Java
- Homepage:
- Size: 189 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DonutProgressView
### A progress view that you can use it when you are loading picture(一个简洁的进度view).
[](https://github.com/samlss/DonutProgressView) [](https://github.com/samlss/DonutProgressView/blob/master/LICENSE) [](https://blog.csdn.net/Samlss)

* [中文](#%E4%B8%AD%E6%96%87)
* [English](#english)
* [License](#license)
## 中文
### 使用
在根目录的build.gradle添加这一句代码:
```
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
```
在app目录下的build.gradle添加依赖使用:
```
dependencies {
implementation 'com.github.samlss:DonutProgressView:1.0'
}
```
布局中使用:
```
```
代码中使用:
```
donutProgressView.setProgress(progress); //设置进度
donutProgressView.setColor(Color.RED); //设置进度颜色
```
属性说明:
| 属性 | 说明 |
| ------------- |:-------------:|
| progressColor | 进度颜色 |
| progress | 进度大小,0-100 |
## English
### Use
Add it in your root build.gradle at the end of repositories:
```
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
```
Add it in your app build.gradle at the end of repositories:
```
dependencies {
implementation 'com.github.samlss:DonutProgressView:1.0'
}
```
in layout.xml:
```
```
in java code:
```
donutProgressView.setProgress(progress); //set progress
donutProgressView.setColor(Color.RED); //set the progress color
```
Attributes description:
| attr | description |
| ------------- |:-------------:|
| progressColor | the progress color |
| progress | the progress, [0 -100] |
[id]: http://example.com/ "Optional Title Here"
## [LICENSE](https://github.com/samlss/DonutProgressView/blob/master/LICENSE)