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.
猛冲越过终点然后返回。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值