問題描述
這可能是一個很容易回答的問題,但是在搜索文檔和 Google 幾個小時后,我自己找不到解決方案.我在 AndroidManifest.xml
文件中將我的 Android 應用程序的方向設置為 landscape
:
This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google. I set the orientation of my Android app to landscape
in the AndroidManifest.xml
file:
android:screenOrientation="landscape"
但是,當我在模擬器中運行應用程序時,它會以橫向和縱向模式顯示.如何在 mac
上將模擬器切換到 landscape
模式?它正在運行 1.6 SDK.
However, when I run the app in the simulator, it appears sideways and in portrait mode. How can I switch the emulator to landscape
mode on a mac
? It's running the 1.6 SDK.
推薦答案
試試:
- ctrl+fn+F11 在 Mac 上將橫向更改為縱向,反之亦然.
- left-ctrl+F11在 Windows 7 上.
- ctrl+F11在 Linux 上.
- ctrl+fn+F11 on Mac to change the landscape to portrait and vice versa.
- left-ctrl+F11on Windows 7.
- ctrl+F11on Linux.
對于 Mac 用戶,如果設置使用所有 F1、F2 等鍵作為功能,您只需使用 fn 鍵鍵"(在系統偏好設置 -> 鍵盤下)被選中.
For Mac users, you only need to use the fn key if the setting "Use all F1, F2 etc. keys as function keys" (under System Preferences -> Keyboard) is checked.
- left-ctrl+F11在 Windows 7 上它在 Windows 7 中運行良好,適用于 android 模擬器,可以將橫向更改為縱向,反之亦然.
- left-ctrl+F11on Windows 7 It works fine in Windows 7 for android emulator to change the landscape orientation to portrait and vice versa.
這篇關于在 Android 模擬器中切換到橫向模式的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!