Home>Topic List> velocitytracker usage
VelocityTracker usage: 1. Create a java example; 2. Reset the VelocityTracker object in the ACTION_DOWN event and add the touch event to the VelocityTracker; 3. In the ACTION_MOVE event, add the touch event to the VelocityTracker again and call `computeCurrentVelocity ()` method to calculate the current speed.