Android不会自动轮播

时间:2012-08-18 17:01:40

标签: android android-layout

我在Eclipse中创建了一个替代布局

res/layout-land/main.xml

我正在使用Hello Android第3版来学习Android。

我错过了什么吗?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.oneorangetree.sudoku"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".Sodoku"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".About"
            android:label="@string/about_title"
            android:theme="@android:style/Theme.Dialog">            
        </activity>
    </application>

</manifest>

2 个答案:

答案 0 :(得分:1)

在设备上设置“显示”时有一个“自动旋转”设置。检查它是否已激活。

答案 1 :(得分:0)

您可以使用 Ctrl + F12

请在此处查看可能的选项 CLICK HERE