Android phone screen anti-landscape and other parameters set

Source: Internet
Author: User

After I some Baidu and look at the Android document, I found that Android on the rotary screen, especially only the horizontal screen or vertical screen, although the support of gravity rotation to Android4.3.1 only the perfect support

unspecified - 默认值,由系统选择显示方向landscape   - 橫向portrait    - 纵向reverseLandscape    - 反横向(API >= 9)reversePortrait     - 反纵向(API >= 9)user        - 用户当前的首选方向behind      - 与Activity堆栈下的方向相同sensor      - 根据物理传感器方向3/4个方向(取决于设备)fullSensor  - 根据物理传感器方向4个方向nosensor    - 不按照物理传感器方向,除此之外与"unspecified"无区别sensorLandscape     - 按照物理传感器,只在横向(2个方向)进行翻转(API >= 9)sensorPortrait      - 按照物理传感器,只在纵向(2个方向)进行翻转(API >= 9)userLandscape       - 按照用户选择,锁定一个横向,或者按照物理传感器进行横向的翻转(API >= 18)userPortrait        - 按照用户选择,锁定一个纵向,或者按照物理传感器进行纵向的翻转(API >= 18)fullUser    - 如果用户锁定了屏幕,它与"user"作用一致,如果是解锁了旋转,它与"fullSensor"作用一致(API >= 18)locked      - 锁定了屏幕当前方向(API >= 18)



Android phone screen anti-landscape and other parameters set

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.