Most visited

Recently visited

VelocityTrackerCompat

public final class VelocityTrackerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.VelocityTrackerCompat


Helper用于访问以向后兼容的方式在API级别4之后引入的 VelocityTracker功能。

Summary

Public methods

static float getXVelocity(VelocityTracker tracker, int pointerId)

致电 getXVelocity(int)

static float getYVelocity(VelocityTracker tracker, int pointerId)

致电 getYVelocity(int)

Inherited methods

From class java.lang.Object

Public methods

getXVelocity

float getXVelocity (VelocityTracker tracker, 
                int pointerId)

致电getXVelocity(int) 如果在预装HONEYCOMB设备上运行,则返回getXVelocity()

Parameters
tracker VelocityTracker
pointerId int
Returns
float

getYVelocity

float getYVelocity (VelocityTracker tracker, 
                int pointerId)

致电getYVelocity(int) 如果在预装HONEYCOMB设备上运行,则返回getYVelocity()

Parameters
tracker VelocityTracker
pointerId int
Returns
float

Hooray!