In the development of Android applications, it is sometimes necessary to limit the screen shift. You only need to include the Android:screenorientation attribute limit in the Androidmanifest.xml file. ndroid:screenorientation= "Landscape" is to limit the horizontal screen display of this page,
Ndroid:screenorientation= "Portrait" is a vertical screen display that limits the number of pages.
For example: I now want all the pages to be displayed vertically, no matter how they are, my androidmanifest.xml should write like this:
<?xml version= "1.0" encoding= "Utf-8"?>
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Com.oa"
Android:versioncode= "1"
Android:versionname= "1.0" >
<application android:icon= "@drawable/icon" android:label= "@string/app_name" >
<activity android:name= ". Oademo "
Android:label= "@string/app_name"
android:screenorientation= "Portrait" >
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>
<category android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name= "MyDocuments" android:screenorientation= "Portrait" ></activity>
<activity android:name= "Reimbursementrecords" android:screenorientation= "Portrait" ></activity>
<activity android:name= "Secondactivty" android:screenorientation= "Portrait" ></activity>
<activity android:name= "Childreimbursementrecords" android:screenorientation= "Portrait" ></activity>
</application>
</manifest>