Most visited

Recently visited

Added in API level 1

AccelerateInterpolator

public class AccelerateInterpolator
extends BaseInterpolator implements NativeInterpolatorFactory

java.lang.Object
    android.view.animation.BaseInterpolator
      android.view.animation.AccelerateInterpolator


内插器,其中变化率开始缓慢,然后加速。

摘要(Summary)

Public constructors

AccelerateInterpolator()
AccelerateInterpolator(float factor)

构造函数

AccelerateInterpolator(Context context, AttributeSet attrs)

公共方法(Public methods)

float getInterpolation(float input)

继承方法(Inherited methods)

From class java.lang.Object
From interface com.android.internal.view.animation.NativeInterpolatorFactory
From interface android.animation.TimeInterpolator

Public constructors

AccelerateInterpolator

Added in API level 1
AccelerateInterpolator ()

AccelerateInterpolator

Added in API level 1
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

Added in API level 1
AccelerateInterpolator (Context context, 
                AttributeSet attrs)

参数(Parameters)
context Context
attrs AttributeSet

公共方法(Public methods)

getInterpolation

Added in API level 1
float getInterpolation (float input)

参数(Parameters)
input float
返回(Returns)
float

Hooray!