【发布时间】:2011-10-10 20:08:27
【问题描述】:
我参考了This 我有同样的问题,我也遵循定义的解决方案,但我无法成功查看横向模式。知道为什么这件事会发生吗?
清单文件::
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.saneshApp"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".saneshApp" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".animation_page" ></activity>
</application>
</manifest>
更新::
更新
【问题讨论】:
-
您使用的是android vnc 查看器吗?我不明白你想做什么。你在清单中这么说
android:screenOrientation="landscape"为什么你希望看到纵向模式? -
不,我使用的是 android 默认 avd 2.2
-
什么是横向?你想使用风景吗?你想使用肖像吗?你想改变模拟器的方向吗?你可以通过按 ctrl + f12 来做到这一点。
-
你的问题不是很清楚。你的意思是你的模拟器不是横向模式?也许这个stackoverflow.com/questions/2618967/… 可以帮助你。
-
你不能旋转模拟器吗?