public class AccelerateInterpolator extends BaseInterpolator implements NativeInterpolatorFactory
Constructor and Description |
---|
AccelerateInterpolator() |
AccelerateInterpolator(Context context,
AttributeSet attrs) |
AccelerateInterpolator(float factor)
Constructor
|
AccelerateInterpolator(Resources res,
Resources.Theme theme,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
long |
createNativeInterpolator() |
float |
getInterpolation(float input)
Maps a value representing the elapsed fraction of an animation to a value that represents
the interpolated fraction.
|
getChangingConfiguration
public AccelerateInterpolator()
public AccelerateInterpolator(float factor)
factor
- Degree to which the animation should be eased. Seting
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)public AccelerateInterpolator(Context context, AttributeSet attrs)
public AccelerateInterpolator(Resources res, Resources.Theme theme, 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 endpublic long createNativeInterpolator()
createNativeInterpolator
in interface NativeInterpolatorFactory