ChatGPT解决这个技术问题 Extra ChatGPT

How do I rotate the Android emulator display? [duplicate]

This question already has answers here: How do I change screen orientation in the Android emulator? (26 answers) Closed 7 years ago.

How can I rotate the Android emulator display to see it in landscape mode?

Things have changed quite a bit since this was asked, please see this page

A
Arsen Khachaturyan

Windows: left Ctrl + F12

Mac: Fn + Ctrl + F12


@Omar : According to the comment of the tutorial androidandme.com/2009/10/news/… , you can rotate on Mac with Shift + F12
Might be stupid but how to return this back to normal?!
Fn + Ctrl + F12, I really don't get why this get so many votes
For Kubuntu users, Ctrl+F12 activates the Widget Dashboard. You will need to make sure NUMLOCK is off and press the 7 number key instead.
Well, this rotates the picture, but the android running in the VM does not detect the rotation an so everything is sideways. :/
i
ismail

Linux: CTRL + F12

Mac: Fn + CTRL + F12

Windows: Left CTRL + F11 or Left CTRL + F12


F11 or F12 alone did not work on windows
Thanks, no numpad on my macbook
as mentioned by @ccheneson only left CTRL + F11 OR left CTRL F12 works for windows
For Mac use Left Ctrl.
CTRL + F12 works on ubuntu too.
Y
Yatharth Agarwal

Turn off NUMLOCK and press NUMPAD 9 to rotate the emulator.


For me, I did not have to turn the number pad off. But, I did have to wait into the emulator was fully booted up before it started working.
P
Peter Mortensen

As far as I know, F11 or F12 doesn't work, and nor does Right Ctrl + F12.

Hit Left Ctrl + F12, or Home, or PageUp, (not NUMPAD 7 or NUMPAD 9 like the website says) to rotate the emulator.


For me NUMPAD 7 did the trick
O
Oscar Salguero

On Mac OS X, you can use Ctrl + Fn + F12 to rotate the Android emulator if you have have not configured your keyboard to "Use all F1, F2, etc. keys as standard function keys" (Check it on System Preferences - Keyboard).

If you have checked the option mentioned above, you will not need the Fn key and you should be able to rotate the emulator only with Ctrl + F12.


S
Sandesh

If you're on a Mac, fn+F11 will rotate the emulator.

But if you're using 4.4, that won't rotate the application orientation. There's a bug


Ah, thanks for mentioning the bug on the 4.4 emulator - it had me thinking my code was buggy.
IMHO the mention about the 4.4 bug should should be in the main answer. This is top result in google, but it didnt answer me before i dug deeper in other answers and this one in particular!
P
Peter Mortensen

Use NUMPAD 7 and NUMPAD 9. It will help you.


Y
Yatharth Agarwal

NUMPAD 7 and NUMPAD 9 work fine for me.


But not 8. And only if NumLock is off. Who's the clever twit at Google that decided to recognize numpad 7 (but not the 7 or Home keys) and numpad 9 (but not the 9 or PgUp keys), only if NumLock is off?!
On my computer with Numlock on, 9 both sends a "9" to the current program and rotates the emulator screen... !
C
Community

Device Start-up Configuration -- Via the GUI

To start-up the device in Landscape mode, modifications be made in the Android Virtual Device (AVD) Manager. Open the Virtual Device Manager, and click the Edit pencil:

https://i.stack.imgur.com/2HrLa.png

Then, under Startup size and orientation, select Landscape:

https://i.stack.imgur.com/g2Uqo.png

.. and click Finish.

Device Start-up Configuration -- Via the config file

Despite the seemingly easy way to configure this, in practice this didn't work for me. So there's a way to edit the device's configuration file instead to force it to start-up in Landscape mode.

It involves manually switching the width and height in the hardware-qemui.ini file.

To do so, open this file for edit in a text editor:

C:\Users\<user>\.android\avd\<deviceName>.avd\hardware-qemu.ini

Switch the values of the width and height, so that the width is longer than the height:

hw.lcd.width = 800
hw.lcd.height = 480

The AVD now boots in Landscape mode. The orientation may still be changed with shortcut keys.


Y
Yatharth Agarwal

Ctrl + F12 did not work for me, nor did Home, PageUp etc.

So here's what finally came up with:

Enable NUMLOCK;

Open your emulator and press the 7 followed by 9 on the NUMPAD on the right side of your keyboard;

Now your emulator will be rotated in the opposite direction;


P
Peter Mortensen

For Mac you can use fn + Left control + F12.


For Mac: This didn't work for me, I used the Num Pad - 7 and Num Pad 9 which worked
Y
Yatharth Agarwal

Press Left Ctrl + F11 or Left Ctrl + F12 to rotate the emulator view.

Note: Right Ctrl doesn't work;


Y
Yatharth Agarwal

Left Ctrl + F11 works on Windows.


P
Peter Mortensen

Use Ctrl + F11. This will rotate your emulator.


P
Peter Mortensen

For rotating the emulator, press CTRL + F12.


P
Peter Mortensen

For Linux the F12 combination does not work. Instead, use:

Left Ctrl + F11


P
Peter Mortensen

You can use Numpad-9 and Numpad-7 to rotate on Windows and Ubuntu.


P
Peter Mortensen

Ubuntu 12.10 (Quantal Quetzal): [LEFT Ctrl] + F12.

For some reason NumLock isn't working on a new install on a Dell XPS 8500, but the above worked.


P
Peter Mortensen

I have checked on Windows: Ctrl + F11 and Ctrl + F12 both are working to change the orientation of the Android simulator.

For other shortcut keys:

In the Eclipse toolbar go to "Help-->key Assist.. "

You can also use Ctrl + Shift + L here, so many shortcut keys of Eclipse are given.


P
Peter Mortensen

On Mac: Fn+Left Ctrl+F12

On Linux: Left Ctrl+F12

If you want to rotate just the screen and not the emulator: Ctrl+F10 (I tried it on Linux)


M
Mwiza

On my DELL XPS ultrabook with Linux Mint 15, none of suggested methods work, until an external keyboard is plugged in and use left CTRL + NUMPAD 9.


P
Peter Mortensen

Press Ctrl + F10 to rotate the emulator screen.


M
Mohan Pednekar

Make sure that "Auto Rotate" on your Android settings is enabled

Press F9 two times in less than 2 seconds = Normal view 0/360º

Press F10 two times in less than 2 seconds = Rotate 180º.

Press F11 two times in less than 2 seconds = Rotate 90º to the RiGHT.

Press F12 two times in less than 2 seconds = Rotate 90º to the LEFT.