Skip to content

Commit f5a9087

Browse files
committed
readme update
1 parent 34e3bc8 commit f5a9087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# LoadingButton [![LoadingButton](https://jitpack.io/v/FlodCoding/LoadingButton.svg)](https://jitpack.io/#FlodCoding/LoadingButton)
22

3-
一个小巧灵活的带加载功能的按钮控件,继承自[DrawableTextView]()
3+
一个小巧灵活的带加载功能的按钮控件,继承自[DrawableTextView](),加载动画来自于[CircularProgressDrawable](https://developer.android.google.cn/reference/android/support/v4/widget/CircularProgressDrawable?hl=en)
44

55
## 特性
66
* 支持按钮收缩
7-
* 支持加载取消,加载完成和失败图标替换
7+
* 支持加载完成和失败图标显示
88
* 可设置加载动画颜色、大小、位置
99

1010
## 如何导入
@@ -84,7 +84,7 @@ loadingBtn.setEnableShrink(true)
8484
8585
@Override
8686
public void onEndDrawableAppear(boolean isComplete, LoadingButton.EndDrawable endDrawable) {
87-
if (isSuccess) {
87+
if (isComplete) {
8888
loadingBtn.setText("Complete);
8989
} else {
9090
loadingBtn.setText("Fail");

0 commit comments

Comments
 (0)