android動畫之android:interpolator屬性使用

android動畫之android:interpolator使用android

 

Interpolator 被用來修飾動畫效果,定義動畫的變化率,可使存在的動畫效果accelerated(加速),decelerated(減速),repeated(重複),bounced(彈跳)等。動畫

AccelerateDecelerateInterpolator 在動畫開始與結束的地方速率改變比較慢,在中間的時候加速ip

  AccelerateInterpolator  在動畫開始的地方速率改變比較慢,而後開始加速ci

  AnticipateInterpolator 開始的時候向後而後向前甩循環

  AnticipateOvershootInterpolator 開始的時候向後而後向前甩必定值後返回最後的值di

  BounceInterpolator   動畫結束的時候彈起co

  CycleInterpolator 動畫循環播放特定的次數,速率改變沿着正弦曲線

  DecelerateInterpolator 在動畫開始的地方快而後慢

  LinearInterpolator   以常量速率改變

  OvershootInterpolator    向前甩必定值後再回到原來位置

 

原文地址:http://sijienet.com/bbs/?leibie=showinfo&id=56

相關文章
相關標籤/搜索