net.simonvt.menudrawer
Class SinusoidalInterpolator

java.lang.Object
  extended by 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.


Constructor Summary
SinusoidalInterpolator()
           
 
Method Summary
 float getInterpolation(float input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinusoidalInterpolator

public SinusoidalInterpolator()
Method Detail

getInterpolation

public float getInterpolation(float input)
Specified by:
getInterpolation in interface android.animation.TimeInterpolator


Copyright © 2012-2013. All Rights Reserved.