Skip to content

Commit a01cf39

Browse files
remove commented code
1 parent 482e0ed commit a01cf39

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

library/src/main/java/com/wang/avi/indicator/BallPulseIndicator.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,13 @@ public void createAnimation() {
4040
int[] delays=new int[]{120,240,360};
4141
for (int i = 0; i < 3; i++) {
4242
final int index=i;
43-
44-
/* Keyframe k1=Keyframe.ofFloat(0,1);
45-
*//*k1.setInterpolator(new CubicBezierInterpolator(0.2, 0.68,0.18, 1.08));*//*
46-
k1.setInterpolator(new LinearInterpolator());
47-
*//*k1.setInterpolator(PathInterpolatorCompat.create(0.2f, 0.68f, 0.18f, 1.08f));*//*
48-
Keyframe k2=Keyframe.ofFloat(0.3f,0.3f);
49-
*//*k2.setInterpolator(PathInterpolatorCompat.create(0.2f, 0.68f,0.18f, 1.08f));*//*
50-
k2.setInterpolator(new LinearInterpolator());
51-
Keyframe k3=Keyframe.ofFloat(1, 1);
52-
PropertyValuesHolder holder=PropertyValuesHolder.ofKeyframe("scale", k1, k2, k3);
53-
ValueAnimator scaleAnim=ValueAnimator.ofPropertyValuesHolder(holder);*/
54-
43+
5544
ValueAnimator scaleAnim=ValueAnimator.ofFloat(1,0.3f,1);
45+
5646
scaleAnim.setDuration(750);
5747
scaleAnim.setRepeatCount(-1);
5848
scaleAnim.setStartDelay(delays[i]);
49+
5950
scaleAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
6051
@Override
6152
public void onAnimationUpdate(ValueAnimator animation) {

0 commit comments

Comments
 (0)