I am rotating an image to some degree using Rotation Animation .and in the same screen i want user to rotate the same image from the previous position to next by clicking a button.but nothing happen to rotation.
///inside oncreate
RotateAnimation rotate = new RotateAnimation(0, rotateSpeed,
Animation.RELATIVE_TO_SELF, 0.9f,
Animation.RELATIVE_TO_SELF, 0.5f);
rotate.setDuration(4000);
rotate.setFillAfter(true);
imv.setAnimation(rotate);
///inside button click
RotateAnimation rotate = new RotateAnimation(start, start+end,
Animation.RELATIVE_TO_SELF, 0.9f,
Animation.RELATIVE_TO_SELF, 0.5f);
rotate.setDuration(2000);
rotate.setFillAfter(true);
imv.setAnimation(rotate);