Android Multitouch - Possible to test in emulator?(Android Multitouch - 可以在模拟器中测试吗?)
问题描述
我最近发现 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 - 可以在模拟器中测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Multitouch - 可以在模拟器中测试吗?


基础教程推荐
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01