use Tween Animation
code:
@Override
public void onClick(View v) {
RotateAnimation rotateAnimation = new RotateAnimation (0,90,Animation.RELATIVE_TO_SELF,0,Animation.RELATIVE_TO_SELF,0);
rotateAnimation.setDuration (2000);
rotateAnimation.setFillAfter (true);
image2.startAnimation (rotateAnimation);
}
of cause use Tween Animation
can do that,but Tween Animation
hava a defect.
For example the following gif click event does not move.
So I want use property Animation
to do that,but I found property Animation
can only rotate around the Center.
how can i use property Animation to rotate view around the point?