您的位置:首页 > 其它

动画

2016-07-28 22:52 232 查看
旋转

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();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: