Spe*_*edy 16 android screen-orientation android-layout
我希望我的活动仅在两种肖像模式下都可用 - 肖像和reversePortrait.我怎样才能做到这一点?当我设置android:screenOrientation="portrait"它将强制活动仅在正常肖像 - 反之亦然与reversePortrait.
android:screenOrientation="portrait"
请不要告诉我这是强制/锁定方向的坏方法.我知道,但客户仍在请求它.感谢您的理解和任何想法.
更新: API等级11及更高版本
小智 41
如果您使用的是API级别9+,请使用android:screenOrientation="sensorPortrait".
android:screenOrientation="sensorPortrait"
纵向,但可以是基于设备传感器的正常或反向纵向.在API级别9中添加.
文档
归档时间:
14 年,7 月 前
查看次数:
18156 次
最近记录:
11 年,9 月 前