我需要使ImageView旋转。为此我使用了下面的代码。ImageView中的动画旋转不平滑
RES /动画/ rotator.xml:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<rotate
android:duration="6000"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="1"
android:toDegrees="359"></rotate>
</set>
Activity.class
final Animation myRotation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.rotator);
imgSplashLogo.startAnimation(myRotation);
图像沿着mycase旋转。
但是在旋转时卡住&不顺利。 哪里可能是我的代码中的错误。
请提前检查it.Thanks ...
http://stackoverflow.com/questions/2032304/android-imageview-animation –
参考http://stackoverflow.com/questions/12295578/rotate-image-on-center- not-going-smooth-monodroid – sasikumar