How do I change screen orientation in the Android emulator?

Viewed 134417

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

27 Answers

Ctrl+F12 is the keyboard shortcut.

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.

Activate Autorotate Setting

Ctrl + F11, numpad 7 and numpad 9 don't work on my Ubuntu box, but Ctrl + F12 does.

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.

Android Emulator

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:

Android Emulator Rotated Left

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.

Android Emulator Landscape

On Mac to see the help: ⌘/ then you will see Keyboard shortcuts.

Rotate right: ⌘→ , Rotate left: ⌘←

For Linux use: Right_Ctrl + left_Arrow or Right_Ctrl + right_Arrow.

Related