net.simonvt.menudrawer
Class SinusoidalInterpolator
java.lang.Object
net.simonvt.menudrawer.SinusoidalInterpolator
- All Implemented Interfaces:
- android.animation.TimeInterpolator, android.view.animation.Interpolator
public class SinusoidalInterpolator
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SinusoidalInterpolator
public SinusoidalInterpolator()
getInterpolation
public float getInterpolation(float input)
- Specified by:
getInterpolation in interface android.animation.TimeInterpolator
Copyright © 2012-2013. All Rights Reserved.