public class OvershootInterpolator extends BaseInterpolator implements NativeInterpolatorFactory
Constructor and Description |
---|
OvershootInterpolator() |
OvershootInterpolator(Context context,
AttributeSet attrs) |
OvershootInterpolator(float tension) |
OvershootInterpolator(Resources res,
Resources.Theme theme,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
long |
createNativeInterpolator() |
float |
getInterpolation(float t)
Maps a value representing the elapsed fraction of an animation to a value that represents
the interpolated fraction.
|
getChangingConfiguration
public OvershootInterpolator()
public OvershootInterpolator(float tension)
tension
- Amount of overshoot. When tension equals 0.0f, there is
no overshoot and the interpolator becomes a simple
deceleration interpolator.public OvershootInterpolator(Context context, AttributeSet attrs)
public OvershootInterpolator(Resources res, Resources.Theme theme, AttributeSet attrs)
public float getInterpolation(float t)
TimeInterpolator
getInterpolation
in interface TimeInterpolator
t
- A value between 0 and 1.0 indicating our current point
in the animation where 0 represents the start and 1.0 represents
the endpublic long createNativeInterpolator()
createNativeInterpolator
in interface NativeInterpolatorFactory