Анимация:
Код: Выделить всё
RotateAnimation animation = new RotateAnimation(to, to,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
animation.setInterpolator(new LinearInterpolator());
animation.setFillAfter(true);Код: Выделить всё
RotateAnimation animation = new RotateAnimation(to, to,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
animation.setInterpolator(new LinearInterpolator());
animation.setFillAfter(true);