android.view
Class VelocityTracker
java.lang.Object
android.view.VelocityTracker
public final class VelocityTracker
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
obtain
public static VelocityTracker obtain()
recycle
public void recycle()
clear
public void clear()
addMovement
public void addMovement(MotionEvent ev)
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-2010. All Rights Reserved.