[Android]讓物件持續旋轉不停頓
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/linear_interpolator"> <rotate android:duration="360" android:fromDegrees="0" android:pivotX="50%" android:pivotY="50%" android:repeatCount="infinite" android:toDegrees="360"/> </set> 加入android:interpolator="@android:anim/linear_interpolator"就不會有停頓。 參考資料: http://www.techques.com/question/1-8648662/How-to-remove-lag-when-Rotate-Animation-repeats-on-Android