Example usage for android.view.animation AnticipateInterpolator AnticipateInterpolator

List of usage examples for android.view.animation AnticipateInterpolator AnticipateInterpolator

Introduction

In this page you can find the example usage for android.view.animation AnticipateInterpolator AnticipateInterpolator.

Prototype

public AnticipateInterpolator(float tension) 

Source Link

Usage

From source file:Main.java

public static AnticipateInterpolator getAnticipateInterpolator(float tension) {
    return new AnticipateInterpolator(tension);
}

From source file:com.savvasdalkitsis.betwixt.Interpolators.java

/**
 * <strong>ANDROID INTERPOLATOR</strong><br/><br/>
 * An interpolator where the change starts backward then flings forward.
 * @param tension Amount of anticipation. When tension equals 0.0f, there is no anticipation
 *                and the interpolator becomes a simple acceleration interpolator.
 *//*from w w w  .jav  a  2s.  c  om*/
@NonNull
public static Interpolator anticipate(float tension) {
    return new AnticipateInterpolator(tension);
}

From source file:lemonlabs.android.expandablebuttonmenu.ExpandableButtonMenu.java

/**
 * Initialized animation properties//from ww w . j  a  va 2 s. co m
 */
private void calculateAnimationProportions() {
    TRANSLATION_Y = sHeight * buttonDistanceY;
    TRANSLATION_X = sWidth * buttonDistanceX;

    anticipation = new AnticipateInterpolator(INTERPOLATOR_WEIGHT);
    overshoot = new OvershootInterpolator(INTERPOLATOR_WEIGHT);
}