I\'m making an example that moving an image from left to right then rotate it self. I\'ve tried using AnimationSet but the image rotation isn\'t correct. It moves in a cycle
Try using this:
RotateAnimation anim = new RotateAnimation(0f, 360f,
Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF, 0.5f);
So it will rotate relative to itself. Hope this helps.
Edit:
image.clearAnimation();
RotateAnimation anim = new RotateAnimation(30, 360, image.getWidth()/2, image.getHeight()/2);
anim.setFillAfter(true);
anim.setRepeatCount(0);
anim.setDuration(10000);
image.startAnimation(anim);
I tested this one in demo application. Its working great. Hope this helps you :)