文章:
https://github.com/kongpf8848/Animation
View 无限循环缩放
ObjectAnimator animatorX = ObjectAnimator.ofFloat(view, "scaleX", 1.0f, 1.15f, 1);ObjectAnimator animatorY = ObjectAnimator.ofFloat(view, "scaleY", 1.0f, 1.15f, 1);AnimatorSet set = new AnimatorSet();animatorX.setRepeatCount(ValueAnimator.INFINITE);animatorX.setInterpolator(new AccelerateDecelerateInterpolator());animatorY.setRepeatCount(ValueAnimator.INFINITE);animatorY.setInterpolator(new AccelerateDecelerateInterpolator());set.setDuration(2000);set.playTogether(animatorX, animatorY);
