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

AccelerateInterpolator

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

An interpolator where the rate of change starts out slowly and and then accelerates.

Summary

Public constructors

Creates a new instance of AccelerateInterpolator with y=x^2 parabola.

<init>(factor: Float)

Creates a new instance of AccelerateInterpolator.

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

Creates a new instance of AccelerateInterpolator from XML.

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

Public constructors

<init>

AccelerateInterpolator()

Creates a new instance of AccelerateInterpolator with y=x^2 parabola.

<init>

AccelerateInterpolator(factor: Float)

Creates a new instance of AccelerateInterpolator.

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

<init>

AccelerateInterpolator(
    @NonNull context: Context,
    @NonNull attrs: AttributeSet)

Creates a new instance of AccelerateInterpolator from XML.

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

Public methods

getInterpolation

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