Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp 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 net.simonvt.menudrawer; /* w ww.j a v a 2s .c o 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)); } }