Android:screenorientation Property

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.