I\'m trying to do a rotating image animation. I need to rotate an icon around itself just like they do in a progressbar, but what I\'m getting is an image rotat
You could try with the following code, rather than doing it in XML:
RotateAnimation rotate = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); rotate.setDuration(4000); rotate.setRepeatCount(Animation.INFINITE); yourView.setAnimation(rotate);