How do I change screen orientation in the Android emulator?

后端 未结 26 2385
慢半拍i
慢半拍i 2020-11-28 18:04

How do we change emulator screen orientation to landscape or portrait?

相关标签:
26条回答
  • 2020-11-28 18:45

    Ctrl+Left

    See documentation here: https://developer.android.com/studio/run/emulator.html#tasks

    0 讨论(0)
  • 2020-11-28 18:46

    All of the above methods didn't work for me. Using Left Ctrl + <Windows Key> + F11 worked on Linux Mint 17.

    0 讨论(0)
  • 2020-11-28 18:47

    Additionally, you must verify the autorotate setting on the emulator. Because of if this setting is off, you can't change the orientation besides press the rotate buttons. In the following picture, I will show how you can do this.

    0 讨论(0)
  • 2020-11-28 18:51

    You no longer need to remember the shortcuts. The latest Android AVD interface contains a sidebar with various functional shortcuts. I've circled in blue the buttons that rotate the screen clockwise and counter-clockwise.

    0 讨论(0)
  • 2020-11-28 18:53

    Num 7 on keypad does it for me. Remember it works only when Num Lock is off.

    0 讨论(0)
  • 2020-11-28 18:53

    On Android Studio 4.0.1, the emulator includes buttons for rotation.

    In the image below, the Rotate Left (shortcut: Ctrl + Left) button is outlined in blue and the Rotate Right (shortcut: Ctrl + Right) button is outlined in red.

    After pressing one of the buttons to rotate, the orientation of the application itself will not change. For instance, if we pressed Rotate Left, the application would look this:

    To change the orientation of the running application, it is necessary to click the icon outlined in red above. Note that this icon may take a few seconds to show up and will disappear shortly. Also, when rotating back to portrait orientation, one must press the opposite rotate button for the icon to appear. This means that if we pressed Rotate Left, we need to press Rotate Right to return to the original orientation, and vice versa.

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