public class DecelerateInterpolator extends Object implements Interpolator
Constructor and Description |
---|
DecelerateInterpolator() |
DecelerateInterpolator(Context context,
AttributeSet attrs) |
DecelerateInterpolator(float factor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
getInterpolation(float input)
Maps a value representing the elapsed fraction of an animation to a value that represents
the interpolated fraction.
|
public DecelerateInterpolator()
public DecelerateInterpolator(float factor)
factor
- Degree to which the animation should be eased. Setting factor to 1.0f produces
an upside-down y=x^2 parabola. Increasing factor above 1.0f makes exaggerates the
ease-out effect (i.e., it starts even faster and ends evens slower)public DecelerateInterpolator(Context context, AttributeSet attrs)
public float getInterpolation(float input)
TimeInterpolator
getInterpolation
in interface TimeInterpolator
input
- A value between 0 and 1.0 indicating our current point
in the animation where 0 represents the start and 1.0 represents
the end