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 1
1
# LoadingButton [ ![ LoadingButton] ( https://jitpack.io/v/FlodCoding/LoadingButton.svg )] ( https://jitpack.io/#FlodCoding/LoadingButton )
2
2
3
- 一个小巧灵活的带加载功能的按钮控件,继承自[ DrawableTextView] ( )
3
+ 一个小巧灵活的带加载功能的按钮控件,继承自[ DrawableTextView] ( ) ,加载动画来自于 [ CircularProgressDrawable ] ( https://developer.android.google.cn/reference/android/support/v4/widget/CircularProgressDrawable?hl=en )
4
4
5
5
## 特性
6
6
* 支持按钮收缩
7
- * 支持加载取消,加载完成和失败图标替换
7
+ * 支持加载完成和失败图标显示
8
8
* 可设置加载动画颜色、大小、位置
9
9
10
10
## 如何导入
@@ -84,7 +84,7 @@ loadingBtn.setEnableShrink(true)
84
84
85
85
@Override
86
86
public void onEndDrawableAppear(boolean isComplete, LoadingButton.EndDrawable endDrawable) {
87
- if (isSuccess ) {
87
+ if (isComplete ) {
88
88
loadingBtn.setText("Complete);
89
89
} else {
90
90
loadingBtn.setText("Fail");
You can’t perform that action at this time.
0 commit comments