Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

AnticipateInterpolator

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

An interpolator where the change starts backward then flings forward.

Summary

Public constructors

Creates a new instance of AnticipateInterpolator.

<init>(tension: Float)

Creates a new instance of AnticipateInterpolator.

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

Creates a new instance of AnticipateInterpolator from XML.

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

Public constructors

<init>

AnticipateInterpolator()

Creates a new instance of AnticipateInterpolator.

<init>

AnticipateInterpolator(tension: Float)

Creates a new instance of AnticipateInterpolator.

Parameters
tension Float: Amount of anticipation. When tension equals 0.0f, there is no anticipation and the interpolator becomes a simple acceleration interpolator.

<init>

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

Creates a new instance of AnticipateInterpolator from XML.

Parameters
context Context: The context.
attrs AttributeSet?: The AttributeSet from the XML.

Public methods

getInterpolation

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