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 | |
---|---|
<init>() Creates a new instance of |
|
Creates a new instance of |
|
<init>(@NonNull context: Context, @NonNull attrs: AttributeSet) Creates a new instance of |
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. |