Most visited

Recently visited

Added in API level 11

TimeInterpolator

public interface TimeInterpolator

android.animation.TimeInterpolator
Known Indirect Subclasses


时间插值器定义动画的变化率。 这允许动画具有非线性运动,例如加速和减速。

摘要(Summary)

公共方法(Public methods)

abstract float getInterpolation(float input)

将代表动画流逝部分的值映射到表示插值部分的值。

公共方法(Public methods)

getInterpolation

Added in API level 1
float getInterpolation (float input)

将代表动画流逝部分的值映射到表示插值部分的值。 然后将该内插值乘以动画值的变化以导出当前流逝的动画时间的动画值。

参数(Parameters)
input float: A value between 0 and 1.0 indicating our current point in the animation where 0 represents the start and 1.0 represents the end
返回(Returns)
float The interpolation value. This value can be more than 1.0 for interpolators which overshoot their targets, or less than 0 for interpolators that undershoot their targets.

Hooray!