Android Multitouch - 可以在模拟器中测试吗?

Android Multitouch - Possible to test in emulator?(Android Multitouch - 可以在模拟器中测试吗?)
本文介绍了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 - 可以在模拟器中测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
cocos2d-android: how to display score(cocos2d-android:如何显示分数)
Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
Android file copy(安卓文件拷贝)
Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)