材料设计圆形的进度条。
材料设计圆形进度条,在使用时可以在图像加载和文件上传中进行下载。
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
dependencies {
compile 'com.github.HotBitmapGG:RingProgressBar:V1.2.3'
}
Step 1.
jitpack.io
https://jitpack.io
Step 2. Add the dependency
com.github.HotBitmapGG
RingProgressBar
V1.2.2
| 名称 | 格式 | 说明 |
|---|---|---|
| ringColor | color | 彩色环 |
| ringProgressColor | color | 进度条颜色 |
| ringWidth | dimension | 进度环的宽度 |
| textColor | color | 文本颜色 |
| textSize | dimension | 文本大小 |
| max | 整数 | 最大进度 |
| textIsShow | boolean | 是否显示文本 |
| 样式 | 笔画与填充 | 圆形进度样式 |
mRingProgressBar = (RingProgressBar) findViewById(R.id.progress_bar);
// Set the progress bar's progress
mRingProgressBar.setProgress(progress);
mRingProgressBar.setOnProgressListener(new RingProgressBar.OnProgressListener()
{
@Override
public void progressToComplete()
{
// Progress reaches the maximum callback default Max value is 100
Toast.makeText(MainActivity.this, "complete", Toast.LENGTH_SHORT).show();
}
});
暂无开放 Issues,或尚未同步最近议题。