https://github.com/samlss/jumboloadingview
🐥A loading(progress) view that you can select different shapes.
https://github.com/samlss/jumboloadingview
andoird loadingview progressview
Last synced: 5 months ago
JSON representation
🐥A loading(progress) view that you can select different shapes.
- Host: GitHub
- URL: https://github.com/samlss/jumboloadingview
- Owner: samlss
- License: mit
- Created: 2018-08-09T09:15:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T10:25:09.000Z (over 7 years ago)
- Last Synced: 2025-04-08T11:37:58.746Z (10 months ago)
- Topics: andoird, loadingview, progressview
- Language: Java
- Homepage:
- Size: 888 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-ZH.md
- License: LICENSE
Awesome Lists containing this project
README
# JumboLoadingView
### 一个可以选择形状并且可设置进度的loading view.
[](https://github.com/samlss/JumboLoadingView) [](https://github.com/samlss/JumboLoadingView/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:JumboLoadingView:1.0'
}
```
## 属性说明:
| 属性 | 说明 |
| ------------- |:-------------:|
| circleColor | 设置外圈圆的颜色 |
| showProgress | 显示显示进度 |
| progress | 当前进度大小(0-100) |
| progressTextColor | 设置进度字体颜色 |
| progressTextSize | 设置进度字体大小 |
| shapeColor | 旋转的形状的颜色 |
| shapeType | 旋转的形状的类型,例如circle圆圈,square正方形,triangle三角形,star星星|
| shapeStyle | 旋转的形状的填充形式,stoke描边,fill整个图形都填充颜色 |
| interpolator | 动画插值器 |
### 插值器值interpolator:
* AccelerateDecelerateInterpolator
* AccelerateInterpolator
* DecelerateInterpolator
* BounceInterpolator
* CycleInterpolator
* LinearInterpolator
* AnticipateOvershootInterpolator
* AnticipateInterpolator
* OvershootInterpolator
## 布局中使用:
```
```
## 代码中使用,以在Activity中使用为例:
```
jumboLoadingView.start(); //开始动画
jumboLoadingView.stop(); //停止动画
jumboLoadingView.release(); //释放,一般在activity的destroy()调用
jumboLoadingView.setCircleColor(Color.RED); //设置外圈圆的颜色
jumboLoadingView.setShapeColor(Color.RED); //设置形状颜色
jumboLoadingView.setProgressTextColor(Color.RED); //设置进度字体颜色
jumboLoadingView.setProgressTextSize(12); //设置进度字体大小
jumboLoadingView.setProgress(99); // 设置进度大小
```
## [LICENSE](https://github.com/samlss/JumboLoadingView/blob/master/LICENSE)