VelocityTracker是一个什么东西呢,查看VelocityTracker源代码发现有如下注释: [html] view plain copy print ? /** * Helper for tracking the velocity of touch events, for implementing * flinging and other such gestures. *…
| Public Methods |
| — |
| 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)
Compu…