1
1
# CircleProgressView
2
2
3
3
[ ![ Download] ( https://img.shields.io/badge/download-App-blue.svg )] ( https://raw.githubusercontent.com/jenly1314/CircleProgressView/master/app/release/app-release.apk )
4
- [ ![ JCenter] ( https://img.shields.io/badge/JCenter-1.1.0 -46C018.svg )] ( https://bintray.com/beta/#/jenly/maven/circleprogressview )
4
+ [ ![ JCenter] ( https://img.shields.io/badge/JCenter-1.1.1 -46C018.svg )] ( https://bintray.com/beta/#/jenly/maven/circleprogressview )
5
5
[ ![ JitPack] ( https://jitpack.io/v/jenly1314/CircleProgressView.svg )] ( https://jitpack.io/#jenly1314/CircleProgressView )
6
6
[ ![ CI] ( https://travis-ci.org/jenly1314/CircleProgressView.svg?branch=master )] ( https://travis-ci.org/jenly1314/CircleProgressView )
7
7
[ ![ CircleCI] ( https://circleci.com/gh/jenly1314/CircleProgressView.svg?style=svg )] ( https://circleci.com/gh/jenly1314/CircleProgressView )
12
12
13
13
CircleProgressView for Android 是一个圆形的进度动画控件,动画效果纵享丝滑。
14
14
15
- > ** CircleProgressView** 不能满足你的需求?
15
+ > ** CircleProgressView** 不能满足你的需求?
16
16
17
- 也许你想要的是[ ArcSeekBar] ( https://github.com/jenly1314/ArcSeekBar )
17
+ 也许你想要的是 [ ArcSeekBar] ( https://github.com/jenly1314/ArcSeekBar )
18
18
19
19
## Gif 展示
20
20
![ Image] ( GIF.gif )
@@ -40,6 +40,11 @@ CircleProgressView for Android 是一个圆形的进度动画控件,动画效
40
40
| cpvTickSplitAngle | integer | 5 | 刻度间隔的角度大小 |
41
41
| cpvBlockAngle | integer | 1 | 刻度的角度大小 |
42
42
| cpvTurn | boolean | false | 是否旋转 |
43
+ | cpvCapRound | boolean | true | 是否是圆形线冒(圆角弧度) |
44
+ | arcLabelPaddingLeft | dimension | 0dp| 文本居左边内间距 |
45
+ | arcLabelPaddingTop | dimension | 0dp| 文本居顶边内间距 |
46
+ | arcLabelPaddingRight | dimension | 0dp| 文本居右边内间距 |
47
+ | arcLabelPaddingBottom | dimension | 0dp| 文本居底边内间距 |
43
48
44
49
45
50
## 引入
@@ -49,18 +54,18 @@ CircleProgressView for Android 是一个圆形的进度动画控件,动画效
49
54
<dependency>
50
55
<groupId>com.king.view</groupId>
51
56
<artifactId>circleprogressview</artifactId>
52
- <version>1.1.0 </version>
57
+ <version>1.1.1 </version>
53
58
<type>pom</type>
54
59
</dependency>
55
60
```
56
61
### Gradle:
57
62
``` gradle
58
- implementation 'com.king.view:circleprogressview:1.1.0 '
63
+ implementation 'com.king.view:circleprogressview:1.1.1 '
59
64
```
60
65
61
66
### Lvy:
62
67
``` lvy
63
- <dependency org='com.king.view' name='circleprogressview' rev='1.1.0 '>
68
+ <dependency org='com.king.view' name='circleprogressview' rev='1.1.1 '>
64
69
<artifact name='$AID' ext='pom'></artifact>
65
70
</dependency>
66
71
```
@@ -90,13 +95,18 @@ allprojects {
90
95
circleProgressView. showAnimation(80 ,3000 );
91
96
// 设置当前进度
92
97
circleProgressView. setProgress(80 );
98
+ // 设置进度改变监听
99
+ circleProgressView. setOnChangeListener(onChangeListener);
93
100
94
101
```
95
102
96
103
更多使用详情,请查看[ app] ( app ) 中的源码使用示例
97
104
98
105
## 版本记录
99
106
107
+ #### v1.1.1:2020-4-2
108
+ * 新增cpvLabelPadding..相关属性
109
+
100
110
#### v1.1.0:2019-8-19
101
111
* 移除appcompat依赖,适配AndroidX
102
112
0 commit comments