问题描述
我最近发现 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 - 可以在模拟器中测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)