且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可绘制围绕其中心机器人

更新时间: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);