Android Animation 之 Interpolator

Interpolator用於動畫中的時間插值,其作用就是把0到1的浮點值變化映射到另一個浮點值變化。

本文列出Android API提供的Interpolator的若干種實現,列出源碼,並且用一個程序繪製出其數學曲線。(項目鏈接附在文後)。

 

AccelerateDecelerateInterpolator

 

AccelerateInterpolator

 

AnticipateInterpolator

 

AnticipateOvershootInterpolator

 

BounceInterpolator

 

CycleInterpolator

 

DecelerateInterpolator

 

LinearInterpolator

 

OvershootInterpolator

 

項目鏈接:

https://github.com/mengdd/HelloInterpolator.git

 

發佈了15 篇原創文章 · 獲贊 48 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章