VelocityTracker的使用方法

VelocityTracker簡介 android.view.VelocityTracker主要用跟蹤觸摸屏事件(flinging事件和其餘gestures手勢事件)的速率。用addMovement(MotionEvent)函數將Motion event加入到VelocityTracker類實例中.你能夠使用getXVelocity() 或getXVelocity()得到橫向和豎向的速率到速率時,
相關文章
相關標籤/搜索