Example usage for Java android.view VelocityTracker fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addMovement(MotionEvent event) Add a user's movement to the tracker. |
void | clear() Reset the velocity tracker back to its initial state. |
void | computeCurrentVelocity(int units, float maxVelocity) Compute the current velocity based on the points that have been collected. |
void | computeCurrentVelocity(int units) Equivalent to invoking #computeCurrentVelocity(int,float) with a maximum velocity of Float.MAX_VALUE. |
float | getXVelocity(int id) Retrieve the last computed X velocity. |
float | getXVelocity() Retrieve the last computed X velocity. |
float | getYVelocity(int id) Retrieve the last computed Y velocity. |
float | getYVelocity() Retrieve the last computed Y velocity. |
VelocityTracker | obtain() Retrieve a new VelocityTracker object to watch the velocity of a motion. |