public class LinearInterpolator
extends BaseInterpolator
implements NativeInterpolatorFactory
java.lang.Object | ||
↳ | android.view.animation.BaseInterpolator | |
↳ | android.view.animation.LinearInterpolator |
内插器的变化率是恒定的
Public constructors |
|
---|---|
LinearInterpolator() |
|
LinearInterpolator(Context context, AttributeSet attrs) |
Public methods |
|
---|---|
float |
getInterpolation(float input) |
Inherited methods |
|
---|---|
From class java.lang.Object
|
|
From interface com.android.internal.view.animation.NativeInterpolatorFactory
|
|
From interface android.animation.TimeInterpolator
|
LinearInterpolator (Context context, AttributeSet attrs)
Parameters | |
---|---|
context |
Context
|
attrs |
AttributeSet
|
float getInterpolation (float input)
Parameters | |
---|---|
input |
float
|
Returns | |
---|---|
float |