Android系統內置的各種動畫插值器(Intepolator)的效果演示

前言

Intepolator是Android動畫系統中極其重要的一個組件,能夠對動畫的實際效果產生很大影響。下面對Android系統內置的幾種Intepolator的效果進行演示。

AccelerateDecelerateInterpolator

1
An interpolator where the rate of change starts and ends slowly but accelerates through the middle.
開始與結束時慢,中間加速。

AccelerateInterpolator

2
An interpolator where the rate of change starts out slowly and and then accelerates.
開始慢,之後加速。

AnticipateInterpolator

3
An interpolator where the change starts backward then flings forward.
開始時先後退,然後向前猛衝。

AnticipateOvershootInterpolator

4
An interpolator where the change starts backward then flings forward and overshoots the target value and finally goes back to the final value.
開始時先後退,然後向前猛衝越過終點,最後再後退到終點位置。

BounceInterpolator

5
An interpolator where the change bounces at the end.
在結尾處反彈直至停止。

CycleInterpolator

6
Repeats the animation for a specified number of cycles. The rate of change follows a sinusoidal pattern.
動畫會反覆多次,速率符合正弦曲線。

DecelerateInterpolator

7
An interpolator where the rate of change starts out quickly and and then decelerates.
開始時快,之後減速。

LinearInterpolator

8
An interpolator where the rate of change is constant
速率保持不變。

OvershootInterpolator

9
An interpolator where the change flings forward and overshoots the last value then comes back.
猛衝越過終點然後返回。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章