Rotate Images Around a Circle?

Viewed 6288

Please take a look at this app snapshot:

enter image description here

This is a bank application. it has 6 buttons around the bank logo. You can rotate the images by click-and-hold in one of them and move your finger in either direction (clockwise or counter-clockwise). So, for example, I can rotate them to put the Currency Convertor image in the place of the Login image.

In my app, I have 6 Images too, I want to rotate them. How can I do that?

Update: BTW, this is an iPhone app but I think it is not iOS-specific issue.

2 Answers

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);
Related