not able to pinch zoom on emulator

前端 未结 14 1430
生来不讨喜
生来不讨喜 2021-01-31 13:34

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 emul

相关标签:
14条回答
  • 2021-01-31 13:44

    I know it's late reply but this might save someones time.

    Double-click and then hold down the second click and move the mouse up to zoom out or down to zoom in.

    Hope this works!

    0 讨论(0)
  • 2021-01-31 13:48

    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

    The emulator supports multi-touch input, as an experimental feature in r17, using a tethered Android device running the SdkControllerMultitouch application. The application contains an activity that monitors 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.

    The SdkControllerSensor application source code is located in

    $SDK/tools/apps/SdkControllerMultitouch/

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

    0 讨论(0)
  • I know this is old but this might still help someone.

    On mac:

    To zoom in use double click (on track pad)

    To zoom out use Command + Shift + click (on track pad)

    0 讨论(0)
  • 2021-01-31 13:49

    OK, I was experimenting a bit, and on the bluestacks android emulator, I've figured it out.

    It is Ctrl+Mouse wheel. Works for me, hope it helps you too.

    0 讨论(0)
  • 2021-01-31 13:54

    As of March 1, 2016 for the Android Studio's emulator on Windows. The pinch key on the emulator is the Alt key. Hold down Alt and click and drag your mouse button.

    The CTRL key might still work for you, but it doesn't work for me.

    0 讨论(0)
  • 2021-01-31 13:56

    On a Mac running the latest version of AndroidStudio and a vanilla Nexus 5 API 24 emulator all you have to do is keep cmd () pressed.

    The drag points will appear. After that just left click and drag anywhere on the screen!

    0 讨论(0)
提交回复
热议问题