在 Android 模拟器中切换到横向模式 [英] Switching to landscape mode in Android Emulator

查看:25
本文介绍了在 Android 模拟器中切换到横向模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个很容易回答的问题,但是在搜索文档和 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 用户,如果设置使用所有 F1F2 等键作为功能,您只需使用 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 模拟器中切换到横向模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆