Lines Matching refs:velocity
17 <li><a href="#velocity">Track Velocity</a></li>
81 <li>The velocity of the pointer as it moves across the touch screen.</li>
87 <h2 id="velocity">Track Velocity</h2>
89 …that is simply based on the distance and/or direction the pointer traveled. But velocity often is a
91 whether the gesture occurred. To make velocity calculation easier, Android
96 android.view.VelocityTracker} helps you track the velocity of touch events. This
97 is useful for gestures in which velocity is part of the criteria for the
117 // Retrieve a new VelocityTracker object to watch the velocity of a motion.
121 // Reset the velocity tracker back to its initial state.
129 // When you want to determine the velocity, call
131 // and getYVelocity() to retrieve the velocity for each pointer ID.
133 // Log velocity of pixels per second
135 Log.d("", "X velocity: " +
138 Log.d("", "Y velocity: " +
153 <p class="note"><strong>Note:</strong> Note that you should calculate velocity after an