如何在 Android 模拟器中更改屏幕方向?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1991318/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I change screen orientation in the Android emulator?
提问by detj
How do we change emulator screen orientation to landscape or portrait?
我们如何将模拟器屏幕方向更改为横向或纵向?
回答by Jeff Gilfelt
Ctrl+F12is the keyboard shortcut.
Ctrl+F12是键盘快捷键。
回答by Neelaganda Moorthy
Android Emulator Shortcuts
Android 模拟器快捷方式
Ctrl+F11Switch layout orientation portrait/landscape backwards
Ctrl+F11向后切换布局方向纵向/横向
Ctrl+F12Switch layout orientation portrait/landscape forwards
Ctrl+F12切换布局方向纵向/横向向前
1. Main Device Keys
1. 主要设备密钥
Home Home Button
主页主页按钮
F2Left Softkey / Menu / Settings button (or Page up)
F2左软键/菜单/设置按钮(或向上翻页)
Shift+f2Right Softkey / Star button (or Page down)
Shift+f2右软键/星号按钮(或向下翻页)
EscBack Button
Esc返回键
F3Call/ dial Button
F3呼叫/拨号按钮
F4Hang up / end call button
F4挂断/结束通话按钮
F5Search Button
F5搜索按钮
2. Other Device Keys
2. 其他设备密钥
Ctrl+F5Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6Volume down (or + on numeric keyboard with Num Lock off) F7Power Button Ctrl+F3Camera Button
Ctrl+F5提高音量(或在数字键盘上关闭 Num Lock) Ctrl+F6降低音量(或在数字键盘上关闭 Num Lock) F7电源按钮 Ctrl+F3相机按钮
Ctrl+F11Switch layout orientation portrait/landscape backwards
Ctrl+F11向后切换布局方向纵向/横向
Ctrl+F12Switch layout orientation portrait/landscape forwards
Ctrl+F12切换布局方向纵向/横向向前
F8Toggle cell network
F8切换蜂窝网络
F9Toggle code profiling
F9切换代码分析
Alt+EnterToggle fullscreen mode
Alt+Enter切换全屏模式
F6Toggle trackball mode
F6切换轨迹球模式
回答by edwardsharp
For those pesky Apple MacBook keyboard layouts that otherwise adjust the volume, use Ctrl+ fn+ F12.
对于那些以其他方式调整音量的讨厌的 Apple MacBook 键盘布局,请使用Ctrl+ fn+ F12。
回答by Usama Sarwar
Num 7on keypad does it for me. Remember it works only when Num Lockis off.
键盘7上的Num为我做这件事。请记住,它仅在Num Lock关闭时有效。
回答by lokoko
ctrl+fn+F11on Mac to change the landscape to portrait and vice versa.
ctrl+ fn+F11在 Mac 上将横向更改为纵向,反之亦然。
left-ctrl+F11on Windows 7.
left-ctrl+F11在 Windows 7 上。
ctrl+F11on Linux.
ctrl+F11在 Linux 上。
回答by gaurav
Ctrl+ F11and Ctrl+ F12both work.
Ctrl+F11和Ctrl+F12都有效。
回答by utrescu
On Ubuntu none of the keys (Ctrl+F11/F12or numpad 7/numpad 9) worked for me. But I can rotate the emulator sending the keys with xdotool.
在 Ubuntu 上,没有任何键(Ctrl+ F11/F12或numpad 7/ numpad 9)对我有用。但是我可以使用xdotool旋转发送密钥的模拟器。
For example for a VM named "Galaxy_Nexus" I can rotate the emulator with:
例如,对于名为“Galaxy_Nexus”的 VM,我可以使用以下命令旋转模拟器:
xdotool search --name "Galaxy" key "ctrl_L+F11"
回答by Hoang Tran
回答by dhiku
For Mac, use:
对于 Mac,请使用:
Ctrl+ FN+ F11
Ctrl+ FN+F11
????
???


