How to detect landscape left (normal) vs landscape right (reverse) with support for naturally landscape devices?

前端 未结 2 718
南旧
南旧 2020-12-19 00:18

What I would like to do:

  • Detect the current layout orientation of the device (Portrait, Landscape-Left, Portrait(upside down), Landscape-Right)
  • Differ
2条回答
  •  轮回少年
    2020-12-19 01:06

    Right landscape wasn't supported till 2.2. You'll need to have <2.2 devices choose in the options or something.

提交回复
热议问题