Set value in Activity tab in Androidmanifest.xml:
android:screenorientation= "Landscape" for 90 degrees (horizontal screen)
Android:screenorientation= "Reverselandscape" is 270 degrees (anti-Shang)
Android:screenorientation= "Sensorlandscape" for 90 degrees and 270 degrees according to g-sensor switching (horizontal screen switching)
android:screenorientation= "Portrait" For 0 degrees (vertical screen)
Android:screenorientation= "reverseportrait" is 180 degrees (reverse vertical screen)
Android:screenorientation= "sensorportrait" for switching between 0 and 180 degrees (vertical toggle)
android:screenorientation="Nosensor"
When setting the activity screen orientation to not follow the sensor nosensor , theactivity page does not turn to the screen, regardless of whether the system is set to auto-turn.
android:screenorientation="Sensor"
When you set the activity screen orientation to follow sensor sensors , theactivity page will follow the sensor to the screen, regardless of whether the system is set to auto-turn the screen.
In summary, the screenorientation set in the activity will take precedence over the system's auto-turn screen settings.
More commonly used, we hope to help!
Android screenorientation screen orientation settings and controls