【发布时间】:2014-01-14 13:20:36
【问题描述】:
使用Android的VelocityTracker跟踪MotionEvents时,是否需要考虑屏幕密度才能返回“密度无关速度”?
velocityTracker.computeCurrentVelocity(1); // pixels per milliseconds
float velocityY = velocityTracker.getYVelocity();
我是否必须将此velocityY 与屏幕比例因子相乘,以便我可以在所有设备上跟踪相同的物理手势速度?
【问题讨论】:
标签: android motionevent density-independent-pixel