AnticipateOvershootInterpolator
public class AnticipateOvershootInterpolator
extends BaseInterpolator
implements NativeInterpolatorFactory
一个内插器,其中变化开始向后,然后向前闪烁并超过目标值,最后返回到最终值。
Summary
Public constructors
AnticipateOvershootInterpolator
AnticipateOvershootInterpolator ()
AnticipateOvershootInterpolator
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
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
AnticipateOvershootInterpolator (Context context,
AttributeSet attrs)
Parameters |
context |
Context
|
attrs |
AttributeSet
|
Public methods
getInterpolation
float getInterpolation (float t)