File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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");
You can’t perform that action at this time.
0 commit comments