AccelerateInterpolator
public class AccelerateInterpolator
extends BaseInterpolator
implements NativeInterpolatorFactory
内插器,其中变化率开始缓慢,然后加速。
Summary
Public constructors
AccelerateInterpolator
AccelerateInterpolator ()
AccelerateInterpolator
AccelerateInterpolator (float factor)
构造函数
Parameters |
factor |
float : Degree to which the animation should be eased. Seting factor to 1.0f produces a y=x^2 parabola. Increasing factor above 1.0f exaggerates the ease-in effect (i.e., it starts even slower and ends evens faster) |
AccelerateInterpolator
AccelerateInterpolator (Context context,
AttributeSet attrs)
Parameters |
context |
Context
|
attrs |
AttributeSet
|
Public methods
getInterpolation
float getInterpolation (float input)