lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

LinearInterpolator

public class LinearInterpolator
extends BaseInterpolator implements NativeInterpolatorFactory

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


An interpolator where the rate of change is constant

Summary

Public constructors

LinearInterpolator()
LinearInterpolator(Context context, AttributeSet attrs)

Public methods

float getInterpolation(float input)

Inherited methods

Public constructors

LinearInterpolator

added in API level 1
public LinearInterpolator ()

LinearInterpolator

added in API level 1
public LinearInterpolator (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