0
我看到很多问题,但没有找到任何类似的模式。我研究了很多。 我有一个图像旋转在36°。 我用过setFillAfter()和setFillEnabled()。这是保存位置,但如果我再次旋转它从原来的位置开始。我希望它从旋转后的位置开始。点击一次后图像开始从起始位置旋转
Animation animation = new Animation (0,36, Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
animation.setDuration(3000);
animation.setInterpolator(new LinearInterpolator());
animation.setFillAfter(true);
myImage.startAnimation(animation);