在使用属性动画的时候 如果想一直重复的执行动画记得用
setRepeatCount(-1)不是setRepeatMode(),//ps可是从名字上看明明是setRepeatMode()比较合理,坑爹啊~~
<pre name="code" class="java"> final ObjectAnimator animator = ObjectAnimator.ofFloat(imageview, "rotation", 0,360);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);//ValueAnimator.INFINITE==-1
animator.start();