Is there any way to test multi-touch on the Android Emulator?

后端 未结 8 2024
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 03:48

Can multi-touch events be tested on the Android Emulator? Or is there any way to test this without an actual device? I am using the 2.0 sdk and want to test zoom-in/zoom-out

8条回答
  •  鱼传尺愫
    2020-12-06 04:37

    I finally discovered how to do a pinch-zoom on the Android emulator for Android Studio 3.2. This was hard to find, but hope it helps someone.

    • move your mouse to where you want the centre of the pinch zoom. (do NOT press the mouse button)
    • press SHIFT (do not press the mouse button)
    • press Command (do not press the mouse button)
    • you should see a round target under your mouse (you haven't pressed the mouse button yet, have you)
    • move your mouse away from this first location to where you want your second "finger"
    • now you can press/drag your mouse to do the pinch/zoom

    That was easy - or not.

提交回复
热议问题