9中动画插值器

来源:互联网 发布:ubuntu 16.04安装lamp 编辑:程序博客网 时间:2024/06/16 18:34

AccelerateInterpolator-----> 加速,开始时慢中间加速

DecelerateInterpolator----->减速,开始时快然后减速

AccelerateDecelerateInterolator----->先加速后减速,开始结束时慢,中间加速

AnticipateInterpolator----->反向 ,先向相反方向改变一段再加速播放

AnticipateOvershootInterpolator----->反向加回弹,先向相反方向改变,再加速播放,会超出目的值然后缓慢移动至目的值

BounceInterpolator----->跳跃,快到目的值时值会跳跃,如目的值100,后面的值可能依次为85,77,70,80,90,100

CycleIinterpolator----->循环,动画循环一定次数,值的改变为一正弦函数:Math.sin(2 * mCycles * Math.PI * input)

LinearInterpolator----->线性,线性均匀改变

OvershottInterpolator----->回弹,最后超出目的值然后缓慢改变到目的值

原创粉丝点击