Skip to content

Commit 7603a78

Browse files
remove commented code
1 parent fc6c3f1 commit 7603a78

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

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

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,9 @@ public void draw(Canvas canvas, Paint paint) {
2525

2626
@Override
2727
public void createAnimation() {
28-
/*ObjectAnimator rotationXAnimation=ObjectAnimator.ofFloat(getTarget(), "rotationX",0,180,180,0,0);
29-
rotationXAnimation.setDuration(3000);
30-
31-
ObjectAnimator rotationYAnimation=ObjectAnimator.ofFloat(getTarget(), "rotationY",0,0,180,180,0);
32-
rotationYAnimation.setDuration(3000);
33-
34-
final AnimatorSet animatorSet=new AnimatorSet();
35-
animatorSet.playTogether(rotationXAnimation,rotationYAnimation);
36-
animatorSet.addListener(new AnimatorListenerAdapter() {
37-
@Override
38-
public void onAnimationRepeat(Animator animation) {
39-
super.onAnimationRepeat(animation);
40-
System.out.println("onAnimationRepeat");
41-
}
42-
43-
@Override
44-
public void onAnimationEnd(Animator animation) {
45-
super.onAnimationEnd(animation);
46-
System.out.println("onAnimationEnd(");
47-
animatorSet.start();
48-
}
49-
});
50-
animatorSet.start();*/
51-
52-
53-
/*PropertyValuesHolder rotation1=PropertyValuesHolder.ofFloat("rotationX",0,180,0,0,0);
54-
PropertyValuesHolder rotation2=PropertyValuesHolder.ofFloat("rotationX",0,0,180,0,0);
55-
PropertyValuesHolder rotation3=PropertyValuesHolder.ofFloat("rotationY",0,0,180,0,0);
56-
PropertyValuesHolder rotation4=PropertyValuesHolder.ofFloat("rotationY",0,0,0,180,0);*/
57-
5828
PropertyValuesHolder rotation5=PropertyValuesHolder.ofFloat("rotationX",0,180,180,0,0);
5929
PropertyValuesHolder rotation6=PropertyValuesHolder.ofFloat("rotationY",0,0,180,180,0);
30+
6031
ObjectAnimator animator=ObjectAnimator.ofPropertyValuesHolder(getTarget(), rotation6,rotation5);
6132
animator.setInterpolator(new LinearInterpolator());
6233
animator.setRepeatCount(-1);

0 commit comments

Comments
 (0)