简体   繁体   中英

Screen orientation to portrait and reverse portrait

My app target 2.2 and later and want to support orientation only on portrait and reverse portrait. and the problem is i can't declare

android:screenOrientation="reversePortrait"

in manifest as it is only available from api level 9. How is it possible to do this by supporting android 2.2 and later.

According to this post,

How to detect exact orientation of device in Froyo?

it is not possible to use portrait mode with reversed API 8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM