Android 禁止横竖屏切换

时间:2015-03-17 10:19:48   收藏:0   阅读:244
xml设置竖屏显示
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.himi" android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MainActivity" android:label="@string/app_name"
android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="4" />
</manifest>


引用:http://www.cnblogs.com/sunjialiang/archive/2011/08/17/2142717.html
http://www.cnblogs.com/franksunny/p/3714442.html

原文:http://www.cnblogs.com/krytor/p/4343663.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!