方法:android
在清单文件的相应Activity里添加it
android:configChanges="orientation|screenSize" android:screenOrientation="portrait"
注:4.0 以上手机screenSize必需要有.io