lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1

AccelerateInterpolator

public class AccelerateInterpolator
extends BaseInterpolator implements NativeInterpolatorFactory

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


An interpolator where the rate of change starts out slowly and and then accelerates.

Summary

Public constructors

AccelerateInterpolator()
AccelerateInterpolator(float factor)

Constructor

AccelerateInterpolator(Context context, AttributeSet attrs)

Public methods

float getInterpolation(float input)

Inherited methods

Public constructors

AccelerateInterpolator

added in API level 1
public AccelerateInterpolator ()

AccelerateInterpolator

added in API level 1
public AccelerateInterpolator (float factor)

Constructor

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
public AccelerateInterpolator (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Public methods

getInterpolation

added in API level 1
public float getInterpolation (float input)

Parameters
input float

Returns
float