【问题标题】:How to solve AVD auto rotate screen issue in android 4.4.2?如何解决 android 4.4.2 中的 AVD 自动旋转屏幕问题?
【发布时间】:2014-01-23 14:05:22
【问题描述】:

当我使用 AVD 运行一个简单的应用程序时,我需要查看横向视图,经过一番搜索,我在 Settings->Display->Auto rotate screen 中检查了我的“自动旋转屏幕”设置,然后我可以通过单击 CTRL+F11 旋转窗口,但我的应用程序中的内容没有按我的预期显示。

我发现有一个关于 Android 2.3 AVD (Issue 13189: Orientation does not change from landscape to portrait on Emulator on 2.3) 的错误报告,但目前还没有人解决它。

任何人都可以有一些想法?

这就是问题所在: 纵向视图:

横向视图:

这是我的 AVD 详细信息:

这是 AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.SimpleFragment"
          android:versionCode="1"
          android:versionName="1.0">
<uses-sdk android:minSdkVersion="19"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
    <activity android:name="MyActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
</application>
</manifest>

【问题讨论】:

  • "但我的应用程序中的内容未按预期显示。"
  • 我已经发布了我的 AndroidManifest.xml 文件。谢谢。
  • @JiangZhanchang 我也有同样的问题..
  • 现在还没有想法。

标签: java android avd


【解决方案1】:

尝试改用 Genymotion Emulator 或 AVD。它在横向和纵向之间有一个旋转按钮

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-25
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多