您的位置:首页 > 其它

关于属性动画的 (日记)

2015-12-17 11:34 232 查看
在使用属性动画的时候 如果想一直重复的执行动画记得用 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();



                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: