我希望能够让一张图片在固定点周围连续旋转360度。我已经看到一些示例,例如:
RotateAnimation anim = new RotateAnimation(0, 360,150,150);
anim.setInterpolator(new LinearInterpolator());
anim.setRepeatCount(Animation.INFINITE);
anim.setDuration(2000);
[imageview].startAnimation(anim);
这确实可以旋转图像,但是它是在一个弧形/圆形路径上旋转。也就是说,图像正在以圆形运动的方式移动/旋转,但并没有停留在其起始位置。
我想要的基本上是模仿风车叶片的旋转。
有什么想法吗?