Rotate Images Around a Circle?

后端 未结 2 1922
后悔当初
后悔当初 2021-01-02 12:16

Please take a look at this app snapshot:

\"enter

This is a bank application. i

2条回答
  •  攒了一身酷
    2021-01-02 12:58

    Just do this

    RotateAnimation rAnim = new RotateAnimation(0, 359, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    rAnim.setDuration(1000);
    image.startAnimation(rAnim);
    

提交回复
热议问题