FileDocCategorySizeDatePackage
BounceInterpolator.javaAPI DocAndroid 5.1 API1374Thu Mar 12 22:22:42 GMT 2015com.android.systemui.statusbar.phone

BounceInterpolator

public class BounceInterpolator extends Object implements android.view.animation.Interpolator
An implementation of a bouncer interpolator optimized for unlock hinting.

Fields Summary
private static final float
SCALE_FACTOR
Constructors Summary
Methods Summary
public floatgetInterpolation(float t)


    
        
        t *= 11f / 10f;
        if (t < 4f / 11f) {
            return SCALE_FACTOR * t * t;
        } else if (t < 8f / 11f) {
            float t2 = t - 6f / 11f;
            return SCALE_FACTOR * t2 * t2 + 3f / 4f;
        } else if (t < 10f / 11f) {
            float t2 = t - 9f / 11f;
            return SCALE_FACTOR * t2 * t2 + 15f / 16f;
        } else {
            return 1;
        }