android.view
Class VelocityTracker
java.lang.Object
android.view.VelocityTracker
public final class VelocityTracker
- extends Object
obtain
public static VelocityTracker obtain()
recycle
public void recycle()
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
clear
public void clear()
addMovement
public void addMovement(MotionEvent event)
computeCurrentVelocity
public void computeCurrentVelocity(int units)
computeCurrentVelocity
public void computeCurrentVelocity(int units,
float maxVelocity)
getXVelocity
public float getXVelocity()
getYVelocity
public float getYVelocity()
getXVelocity
public float getXVelocity(int id)
getYVelocity
public float getYVelocity(int id)
Copyright © 2008-2012. All Rights Reserved.