更新时间:2023-11-19 12:21:52
觉得自己很蠢!心动不如花一些时间仔细阅读文档后工作:
Feel stupid! Got it to work after spending some time closely reading the documentation:
Animation a = new RotateAnimation(0.0f, 360.0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,
0.5f);
a.setRepeatCount(-1);
a.setDuration(1000);