Back to project page Android-Pulley-Menu.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project Android-Pulley-Menu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package anshul.pulleymenu; //ww w . jav a 2 s .co m import android.view.animation.Interpolator; /** * Interpolator which, when drawn from 0 to 1, looks like half a sine-wave. Used for smoother opening/closing when * peeking at the drawer. */ class SinusoidalInterpolator implements Interpolator { @Override public float getInterpolation(float input) { return (float) (0.5f + 0.5f * Math.sin(input * Math.PI - Math.PI / 2.f)); } }