File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -76,20 +76,14 @@ When the loading animation is running, call:
76
76
77
77
### - Revert the loading animation with different text or image
78
78
79
- circularProgressButton.revertAnimation(new OnAnimationEndListener() {
80
- @Override
81
- public void onAnimationEnd() {
82
- circularProgressButton.setText("Seu texto aqui!");
83
- }
84
- });
79
+ progressButton.revertAnimation {
80
+ progressButton.text = "Some new text"
81
+ }
85
82
or
86
83
87
- circularProgressImageButton.revertAnimation(new OnAnimationEndListener() {
88
- @Override
89
- public void onAnimationEnd() {
90
- progressButton.setImageDrawable(R.drawable.image);
91
- }
92
- });
84
+ progressImageButton.revertAnimation {
85
+ progressImageButton.setImageResource(R.drawable.image)
86
+ }
93
87
94
88
## Configure XML
95
89
You can’t perform that action at this time.
0 commit comments