Frame-to-Frame Animation 的用處之一:一個軟件的背景需要隨時間更換
設置interpolator的方法:
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:shareInterpolator="true">
在代碼中:
AnimationSet animationSet=new AnimationSet(true);
//true表示共享同一個interpolator
animationSet.setInterpolator(new AccelerateDecelerateInterpolator());