我最近发现 Android 2.0 SDK 通过 MotionEvent 类中的新功能支持多点触控.您可以在检索触摸属性时指定指针索引,如果屏幕上有多个手指,则应提供多个指针.
I recently discovered that the Android 2.0 SDK supports multitouch through new functions in the MotionEvent class. You can specify a pointer index when retrieving touch properties, and in cases where multiple fingers are on the screen there should be multiple pointers provided.
不幸的是,我只有一个 G1 可以测试,它运行的是 Android 1.5 而不是 2.0.
Unfortunately, I only have a G1 to test on and it's running Android 1.5 and not 2.0.
有没有什么方法可以在没有 2.0 设备的情况下测试多点触控?在 iPhone 模拟器中,您可以按住 option 和 shift option 分别执行两指捏合和两指拖动.Android模拟器中是否有类似的功能?这是我应该期待在未来看到的东西,还是我应该忍气吞声并购买新的测试手机?
Is there any way to test multitouch without a 2.0 device? In the iPhone simulator, you can hold down option and shift option to perform two fingered pinch and two fingered drag, respectively. Is there any similar functionality in the Android emulator? Is it something I should expect to see in the future, or should I just suck it up and buy a new test phone?
这是一个来自 Android 团队的人的帖子,他说模拟器中的多点触控仍然不受支持.
This is a post by a guy from the Android team who says that multitouch in the emulator is still not supported.
这篇关于Android Multitouch - 可以在模拟器中测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!