现在的位置: 首页 > 综合 > 正文

Android 中横竖屏的设置

2013年05月17日 ⁄ 综合 ⁄ 共 495字 ⁄ 字号 评论关闭

将android:screenOrientation="portrait",转换横屏竖屏无效,始终显示竖屏。

  <application 
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity android:screenOrientation="portrait"
            android:name="com.example.expandablelistdemo.ExpandableList3"
            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>

抱歉!评论已关闭.