不能捏变焦的模拟器 [英] not able to pinch zoom on emulator

查看:129
本文介绍了不能捏变焦的模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪我需要实现图像编辑其中还包括捏缩放的应用程序,我做了捏缩放,但我只能在设备不能在模拟器上测试,这是有没有办法进行测试捏缩放Android模拟器的任何快捷键或其他任何方式

I have an application in which i need to implement image editing which also includes pinch zooming ,I am done with pinch zooming but i can test this only on device not on emulator is there any way for testing pinch zooming in android emulator any short cut key or any other way

推荐答案

自ADT 17,它可以使用一个物理的Andr​​oid 4.0设备以发送多点触摸手势到仿真器的请参阅Android的说明,这里

Since ADT 17, it is possible to use a physical Android 4.0 device to send multitouch gestures to the emulator.See Android's instructions here.

的Multi-Touch

模拟器支持多点触控输入,如R17实验性功能,使用运行SdkControllerMultitouch参加办法一个拴Android设备。该应用程序包含监视触摸输入,并将它们发送到仿真器的活性。这需要一个Android 4.0或更高版本的系统映像。 活动显示了仿真器屏幕的内容,以帮助与互动性。建议启用在模拟器上设置的开发商部分显示触摸,看看究竟在何处触摸发送。

The emulator supports multi-touch input, as an experimental feature in r17, using a tethered Android device running the SdkControllerMultitouch appplication. The application contains an activity that monitor touch inputs and sends them to the emulator. This requires an Android 4.0 or later system image. The activity displays the content of the emulator screens to help with interactivity. It is recommended to enable "show touches" in the Developer section of the Settings on the emulator to see exactly where the touches are sent.

在SdkControllerSensor应用程序源$ C ​​$ C位于

The SdkControllerSensor application source code is located in

$ SDK /工具/应用程序/ SdkControllerMultitouch /

$SDK/tools/apps/SdkControllerMultitouch/

不过,这仍是一个解决办法,因为我们需要一个真正的设备,我会建议到真正的设备它更健壮,更高性能的直接测试您的应用程序。

But this is still a workaround since we need a real device, I would advice to test your app directly on the real device it's more robust, and even more performant.

这篇关于不能捏变焦的模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆