机器人:我如何验证,该设备支持多点触控?多点、机器人、触控、设备

2023-09-04 08:28:42 作者:15.傷.

我如何可以验证,该设备支持多点触控的事件?如果设备具有性能稳定的显示屏,多点触控是不可能的。就是这样找出来的,是在设备什么样的显示器,或者如果设备支持多点触控?

How can I verify, that device support multitouch event? If device have resistent display, multitouch is not possible. Is that way to find out, what kind of display is in device, or if device support multitouch?

感谢。

推荐答案

如果您需要多点触控,包括:

If you need multitouch, include:

<uses-feature android:name="android.hardware.touchscreen.multitouch" />

在清单。您的申请将不会被列在市场上缺乏多点触控设备。

in your manifest. Your application will not be listed in the Market for devices that lack multitouch.

如果您希望有条件地支持多点触控,使用 PackageManager hasSystemFeature()来看看 android.hardware.touchscreen.multitouch 可用。

If you wish to conditionally support multitouch, use PackageManager and hasSystemFeature() to see if android.hardware.touchscreen.multitouch is available.