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

OvershootInterpolator

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

An interpolator where the change flings forward and overshoots the last value then comes back.

Summary

Public constructors

<init>(tension: Float)

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

Public methods

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

Public constructors

<init>

OvershootInterpolator()

<init>

OvershootInterpolator(tension: Float)
Parameters
tension Float: Amount of overshoot. When tension equals 0.0f, there is no overshoot and the interpolator becomes a simple deceleration interpolator.

<init>

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

Public methods

getInterpolation

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