开发者

Smooth panning problem -- low touches per second

If I quickly swipe my finger开发者_如何学C around the screen, android only gives me about 15 different touch events per second.

This means that if I have an image panning around to follow my finger, it will only move 15 times per second, which is essentially 15 frames per second.

Google maps pans much more smoothly than 15 frames per second.

Does anyone know how it is possible to make panning smoother, when the android system won't provide you more than 15 touch events or so per second?


Your solution is use an integrated methods of Path class: quadTo() or cubicTo(). Check this: http://developer.android.com/reference/android/graphics/Path.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜