FileDocCategorySizeDatePackage
AccelerateDecelerateInterpolator.javaAPI DocAndroid 5.1 API1679Thu Mar 12 22:22:10 GMT 2015android.view.animation

AccelerateDecelerateInterpolator

public class AccelerateDecelerateInterpolator extends BaseInterpolator implements com.android.internal.view.animation.NativeInterpolatorFactory
An interpolator where the rate of change starts and ends slowly but accelerates through the middle.

Fields Summary
Constructors Summary
public AccelerateDecelerateInterpolator()

    
public AccelerateDecelerateInterpolator(android.content.Context context, android.util.AttributeSet attrs)

    
Methods Summary
public longcreateNativeInterpolator()

hide

        return NativeInterpolatorFactoryHelper.createAccelerateDecelerateInterpolator();
    
public floatgetInterpolation(float input)

        return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;