一直转的旋转动画中间有停顿的只要原因是,旋转动画的旋转速度不是一直不变的,是有加速过程的,所以解决这个问题就可以让旋转动画一直转,不停顿:

rotateAnimation = new RotateAnimation(0,360,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);        rotateAnimation.setDuration(300);        rotateAnimation.setFillAfter(true);        rotateAnimation.setRepeatMode(Animation.RESTART);        //让旋转动画一直转,不停顿的重点        rotateAnimation.setInterpolator(new LinearInterpolator());        rotateAnimation.setRepeatCount(-1);

更多相关文章

  1. Android(安卓)View体系(三)--实现 View 的滑动七种方式
  2. Android(安卓)OpenGL自学笔记
  3. Android之旋转button视图
  4. Android(安卓)属性动画 实现view翻转 旋转 平移 拉伸 透明度 背
  5. Android中一个动画应用于两个View中不同步的问题
  6. Android(安卓)5.1 Lollipop Phone工作流程浅析(十三)__InCallAct
  7. API Demos 2.2 研读笔记(10)——Redirection, Reorder Activity an
  8. (4.1.23.1)Android(安卓)属性动画(Property Animation) 完全解析 (上)
  9. Android实现图片单点旋转缩放保存-仿百度魔图

随机推荐

  1. Android网络通信(4):WebKit
  2. Appium框架解析
  3. RN(Flexbox)与Android对比
  4. Android进阶之抢购倒计时功能
  5. android ListView的item侧滑删除
  6. Android(安卓)getevent/senevent
  7. Android(安卓)UI设计中的三种特效
  8. 【安卓笔记】view.getX和view.getTransla
  9. android sqlite3使用命令
  10. android方便的自定义Dialog工厂类