在AndroidManifest.xml的activity中加入: android:screenOrientation=”portrait”
如:
<activity android:name=".RegisteredActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" />
在AndroidManifest.xml的activity中加入: android:screenOrientation=”portrait”
如:
<activity android:name=".RegisteredActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" />