【发布时间】:2017-07-04 17:24:57
【问题描述】:
我有一张旋转 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);
【问题讨论】:
标签: android android-animation android-imageview android-image