Skip to content

Commit 43b1e1c

Browse files
committed
update readme
1 parent 36c2efc commit 43b1e1c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@
77

88
需要指定确定的layout_width和layout_height,两者应该一致.圆环贴着view边缘往内画,不要设置padding,以免变形以及改变了显示效果。
99

10+
11+
1012
默认结束颜色为浅灰色,开始颜色为白色。
13+
1114
具体项目中,一般改endcolor为需要的颜色即可。
1215

1316
cpb_duration : 默认1200ms转完一圈。此速度适中,一般无需更改。
14-
cpb_strokeWidth : 为圆直径的0.08倍,参考安卓原生比例,一般无需更改。
17+
18+
19+
cpb_strokeWidth : 为圆直径的0.1倍,参考安卓原生比例,一般无需更改。
20+
21+
1522
cpb_startColor:默认白色,一般无需更改。
23+
24+
1625
cpb_endColor :浅灰色,能应付大多数场景。如果对颜色有要求,改此属性即可。
1726

27+
28+
1829
<com.hss01248.roundprogressbar.RoundProgressBar
1930
android:id="@+id/pb"
2031
android:layout_centerInParent="true"

0 commit comments

Comments
 (0)