Skip to content

Most visited

Recently visited

navigation

AnticipateOvershootInterpolator

public class AnticipateOvershootInterpolator
extends BaseInterpolator implements NativeInterpolatorFactory

java.lang.Object
   ↳ android.view.animation.BaseInterpolator
     ↳ android.view.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

AnticipateOvershootInterpolator()
AnticipateOvershootInterpolator(float tension)
AnticipateOvershootInterpolator(float tension, float extraTension)
AnticipateOvershootInterpolator(Context context, AttributeSet attrs)

Public methods

float getInterpolation(float t)

Inherited methods

From class java.lang.Object
From interface com.android.internal.view.animation.NativeInterpolatorFactory
From interface android.animation.TimeInterpolator

Public constructors

AnticipateOvershootInterpolator

Added in API level 4
AnticipateOvershootInterpolator ()

AnticipateOvershootInterpolator

Added in API level 4
AnticipateOvershootInterpolator (float tension)

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.

AnticipateOvershootInterpolator

Added in API level 4
AnticipateOvershootInterpolator (float tension, 
                float extraTension)

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.

AnticipateOvershootInterpolator

Added in API level 4
AnticipateOvershootInterpolator (Context context, 
                AttributeSet attrs)

Parameters
context Context
attrs AttributeSet

Public methods

getInterpolation

Added in API level 4
float getInterpolation (float t)

Parameters
t float
Returns
float
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.