Today work found an activity of the Android:screenorientation property set to behind, usually see is landscape, portrait, for a moment did not react, so checked the android: Screenorientation the supported properties.
As is known to all, in Android applications, Android:screenorientation is used to control the activity start-up direction, the value can be:
- Unspecified, default value, determined by the system, different phones may be inconsistent
- Landscape, Force horizontal screen display
- Portrait, forced vertical screen display
- Behind, same as the previous activity direction
- Sensor, according to the direction of the physical sensor rotation, the user 90 degrees, 180 degrees, 270 degrees rotating mobile phone direction, the activity is more change
- Sensorlandscape, horizontal screen rotation, general horizontal screen game will be set
- sensorportrait, Vertical screen rotation
- Nosensor, when rotating the device, the interface does not rotate. Initialization of the interface direction is controlled by the system
- User, direction of the current set of users
Android:screenorientation Property