通過XML設置屏幕方向(android:screenOrientation)详解
来源:互联网 发布:python面试题 知乎 编辑:程序博客网 时间:2024/05/22 17:05
注意:android只支持270度旋转。
<activity android:name=".MyActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
android:screenOrientation设定该活动的方向, 该值可以是任何一个下面的字符串:
"unspecified"
- 默认值. 由系统选择显示方向. 在不同的设备可能会有所不同.
"landscape"
- 橫向
"portrait"
- 纵向
"user"
- 用戶当前的首选方向
"behind"
- 与在活动堆栈下的活动相同方向
"sensor"
- 根据物理方向传感器确定方向. 取决于用戶手持的方向, 当用戶转动设备, 它跟隨改变.
"nosensor"
- 不经物理方向传感器確定方向. 该传感器被忽略, 所以当用戶转动设备, 显示不會跟隨改变. 除了这个区别,系統选择使用相同的政策取向对于“未指定”设置. 系統根据“未指定”("unspecified")设定选择相同显示方向.
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 通过XML设置屏幕方向(android:screenOrientation)详解
- 通过XML设置屏幕方向(android:screenOrientation)详解
- 通过XML设置屏幕方向(android:screenOrientation)
- android中屏幕方向screenOrientation属性详解
- android:screenOrientation屏幕方向
- 屏幕方向android:screenOrientation
- 屏幕方向android:screenOrientation
- android:screenOrientation 强制屏幕方向
- android:screenOrientation 强制屏幕方向
- Android基础:screenOrientation 屏幕方向
- Android:screenOrientation设定屏幕旋转方向
- android:screenOrientation的说明 固定屏幕显示方向
- C语言详解sizeof
- [MSSQL]sys.objects和sys.models两个系统存储过程
- iccv 2011 paper
- vs2010下编译安装boost
- 历经12.4亿小时测试 微软在纽约正式发布Windows 8
- 通過XML設置屏幕方向(android:screenOrientation)详解
- 基于springsource-tool-suite的Grails环境搭建
- 再谈晋商精神
- select @@identity的应用(得到刚插入数据的ID)
- 分布式组件--基于内存的网络锁服务器
- struts2的标签select
- 浅谈如何用Java操作MongoDB
- OSAL系统架构
- uboot 命令使用教程(uboot参数设置)