Google is committed to advancing racial equity for Black communities. See how.

LinearInterpolator

open class LinearInterpolator : Interpolator
kotlin.Any
   ↳ androidx.core.animation.LinearInterpolator

An interpolator where the rate of change is constant

Summary

Public constructors

<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?)

Public methods

open Float
getInterpolation(@FloatRange(0, 1) input: Float)

Public constructors

<init>

LinearInterpolator()

<init>

LinearInterpolator(
    @NonNull context: Context,
    @Nullable attrs: AttributeSet?)

Public methods

getInterpolation

@FloatRange(0, 1) open fun getInterpolation(@FloatRange(0, 1) input: Float): Float