How do I change screen orientation in the Android emulator?

泄露秘密 提交于 2019-11-26 09:15:51

问题


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


回答1:


Ctrl+F12 is the keyboard shortcut.




回答2:


Android Emulator Shortcuts

Ctrl+F11 Switch layout orientation portrait/landscape backwards

Ctrl+F12 Switch layout orientation portrait/landscape forwards

1. Main Device Keys

Home Home Button

F2 Left Softkey / Menu / Settings button (or Page up)

Shift+f2 Right Softkey / Star button (or Page down)

Esc Back Button

F3 Call/ dial Button

F4 Hang up / end call button

F5 Search Button

2. Other Device Keys

Ctrl+F5 Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6 Volume down (or + on numeric keyboard with Num Lock off) F7 Power Button Ctrl+F3 Camera Button

Ctrl+F11 Switch layout orientation portrait/landscape backwards

Ctrl+F12 Switch layout orientation portrait/landscape forwards

F8 Toggle cell network

F9 Toggle code profiling

Alt+Enter Toggle fullscreen mode

F6 Toggle trackball mode




回答3:


For those pesky Apple MacBook keyboard layouts that otherwise adjust the volume, use Ctrl + fn + F12.




回答4:


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




回答5:


ctrl+fn+F11 on Mac to change the landscape to portrait and vice versa.

left-ctrl+F11on Windows 7.

ctrl+F11on Linux.




回答6:


Ctrl + F11 and Ctrl + F12 both work.




回答7:


On Ubuntu none of the keys (Ctrl+F11/F12 or numpad 7/numpad 9) worked for me. But I can rotate the emulator sending the keys with xdotool.

For example for a VM named "Galaxy_Nexus" I can rotate the emulator with:

xdotool search --name "Galaxy" key "ctrl_L+F11"



回答8:


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




回答9:


For Mac, use:

Ctrl + FN + F11

​​​​




回答10:


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.




回答11:


Ubuntu Release 12.04 (precise) 64-bit
DELL Latitude E6320

CTRL + (double tap on F12)




回答12:


Fn + 7 is a solution for keyboards where the num keypad is merged with the main keypad. Here the key with 7 (and &) is the key that has the blue-coloured 7.




回答13:


Android Emulator Shortcuts

Ctrl+F11 Switch layout orientation portrait/landscape backwards

Ctrl+F12 Switch layout orientation portrait/landscape forwards

  1. Main Device Keys

Home Home Button

F2 Left Softkey / Menu / Settings button (or Page up)

Shift+F2 Right Softkey / Star button (or Page down)

Esc Back Button

F3 Call/ dial Button

F4 Hang up / end call button

F5 Search Button

  1. Other Device Keys

Ctrl+F5 Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6 Volume down (or + on numeric keyboard with Num Lock off) F7 Power Button Ctrl+F3 Camera Button

Ctrl+F11 Switch layout orientation portrait/landscape backwards

Ctrl+F12 Switch layout orientation portrait/landscape forwards

F8 Toggle cell network

F9 Toggle code profiling

Alt+Enter Toggle fullscreen mode

F6 Toggle trackball mode




回答14:


In my notebook, Dell Latitude E4310, the Ctrl+F12 keys do the job.




回答15:


My virtual device could not be rotated. Go to the device list, click settings and change the predefined resolution.




回答16:


Use function + 9 for HP laptops. Others keys specified in previous answers didn't work for me.




回答17:


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.




回答18:


Left Ctrl+F12 = For Windows 8




回答19:


To do this on the Surface

Ctrl+Fn+F12




回答20:


With Android Studio:

Windows: Ctrl+Left-Arrow and Ctrl+Right-Arrow




回答21:


Super->Ctrl_L->F12 works for me on Fedora 23




回答22:


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




回答23:


In the updated emulator you don't have to remember the keyboard shortcuts -- they have added a side panel to the right side of the window. You can change the screen orientation by clicking either of the "rotate" buttons in that side panel.

Just click on Rotate button to change the landscape to portrait and vice versa.




回答24:


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

Rotate right: ⌘→ , Rotate left: ⌘←




回答25:


Ctrl+Left

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



来源:https://stackoverflow.com/questions/1991318/how-do-i-change-screen-orientation-in-the-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!