旋转
ObjectAnimator anim; anim = ObjectAnimator.ofFloat(imageView, "rotation", 0, 360); anim.setDuration(5000); anim.setRepeatCount(Animation.INFINITE);//无限循环 // anim.setRepeatCount(5); LinearInterpolator lir = new LinearInterpolator(); anim.setInterpolator(lir);//设置匀速旋转 anim.setRepeatMode(ObjectAnimator.RESTART); anim.start(); // anim.pause(); // anim.resume();