Skip to content

Commit 61b1501

Browse files
Update README.md
1 parent be0d4d1 commit 61b1501

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,14 @@ When the loading animation is running, call:
7676

7777
### - Revert the loading animation with different text or image
7878

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+
}
8582
or
8683

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+
}
9387

9488
## Configure XML
9589

0 commit comments

Comments
 (0)