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

DecelerateInterpolator

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

An interpolator where the rate of change starts out quickly and and then decelerates.

Summary

Public constructors

<init>(factor: Float)

Constructor

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

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

Public constructors

<init>

DecelerateInterpolator()

<init>

DecelerateInterpolator(factor: Float)

Constructor

Parameters
factor Float: Degree to which the animation should be eased. Setting factor to 1.0f produces an upside-down y=x^2 parabola. Increasing factor above 1.0f makes exaggerates the ease-out effect (i.e., it starts even faster and ends evens slower)

<init>

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

Public methods

getInterpolation

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