package com.race604.flyrefresh.internal; import android.view.animation.Interpolator; /** * Created by jing on 15-5-22. */ public class ElasticOutInterpolator implements Interpolator { @Override public float getInterpolation(float t) { if (t == 0) return 0; if (t >= 1) return 1; float p=.3f; float s=p/4; return ((float)Math.pow(2,-10*t) * (float)Math.sin( (t-s)*(2*(float)Math.PI)/p) + 1); } }