AnticipateOvershootInterpolator
open class AnticipateOvershootInterpolator : Interpolator
kotlin.Any | |
↳ | androidx.core.animation.AnticipateOvershootInterpolator |
An interpolator where the change starts backward then flings forward and overshoots the target value and finally goes back to the final value.
Summary
Public constructors | |
---|---|
<init>() Creates a new instance of |
|
Creates a new instance of |
|
Creates a new instance of |
|
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?) |
Public methods | |
---|---|
open Float |
getInterpolation(@FloatRange(0, 1) t: Float) |
Public constructors
<init>
AnticipateOvershootInterpolator()
Creates a new instance of AnticipateOvershootInterpolator
with slight anticipate and overshoot.
<init>
AnticipateOvershootInterpolator(tension: Float)
Creates a new instance of AnticipateOvershootInterpolator
.
Parameters | |
---|---|
tension |
Float: Amount of anticipation/overshoot. When tension equals 0.0f, there is no anticipation/overshoot and the interpolator becomes a simple acceleration/deceleration interpolator. |
<init>
AnticipateOvershootInterpolator(
tension: Float,
extraTension: Float)
Creates a new instance of AnticipateOvershootInterpolator
.
Parameters | |
---|---|
tension |
Float: Amount of anticipation/overshoot. When tension equals 0.0f, there is no anticipation/overshoot and the interpolator becomes a simple acceleration/deceleration interpolator. |
extraTension |
Float: Amount by which to multiply the tension. For instance, to get the same overshoot as an OvershootInterpolator with a tension of 2.0f, you would use an extraTension of 1.5f. |
<init>
AnticipateOvershootInterpolator(
@NonNull context: Context,
@Nullable attrs: AttributeSet?)