设置屏幕显示模式ScreenOrientation.
来源:互联网 发布:c语言汇编看什么 编辑:程序博客网 时间:2024/05/16 04:32
设置屏幕显示模式ScreenOrientation.
在activity里设置android:screenOrientation的值。
android:screenOrientation的属性有以下值:
unspecified(默认值,由系统判断状态自动切换),The default value. The system chooses the orientation. The policy it uses, and therefore the choices made in specific contexts, may differ from device to device.
landscape,横屏
portrait,竖屏
user(用户当前设置的orientation值),The user's current preferred orientation.
behind(下一个要显示的Activity的orientation值),The same orientation as the activity that's immediately beneath it in the activity stack.
sensor(传感器的方向),The orientation determined by a physical orientation sensor. The orientation of the display depends on how the user is holding the device; it changes when the user rotates the device.
nosensor(不使用传感器,这个效果差不多等于unspecified).An orientation determined without reference to a physical orientation sensor. The sensor is ignored, so the display will not rotate based on how the user moves the device. Except for this distinction, the system chooses the orientation using the same policy as for the "unspecified" setting.
- 设置屏幕显示模式ScreenOrientation.
- 设置屏幕显示模式ScreenOrientation.
- 固定屏幕显示模式 ScreenOrientation
- 2012-7-17 固定屏幕显示模式Android: ScreenOrientation,全屏
- 通过XML设置屏幕方向(android:screenOrientation)
- android:screenOrientation的说明 固定屏幕显示方向
- android:screenOrientation的说明 固定屏幕显示方向
- android:screenOrientation的说明 固定屏幕显示方向
- 通过XML设置屏幕方向(android:screenOrientation)详解
- 通过XML设置屏幕方向(android:screenOrientation)详解
- android:screenOrientation屏幕方向
- 屏幕方向android:screenOrientation
- 屏幕方向android:screenOrientation
- 固定屏幕显示模式 ScreenOrientation(转:http://student.csdn.net/space.php?uid=121497&do=blog&id=19188)
- android:screenOrientation显示方向
- android:screenOrientation横屏竖屏设置
- Android的screenOrientation设置
- android:screenOrientation 强制屏幕方向
- 我在linux主机用arm-linux-gcc编译后,复制到开发板根目录运行,出现/bin/sh: ./hello not found
- EXT 3.x 使用详解之Ext.grid.GridPanel(二)
- VB学习1
- 如何打tag2
- cvMatchTemplate()和cvMatchShapes() 的使用举例
- 设置屏幕显示模式ScreenOrientation.
- 火车票订票系统的几点优化思考
- Java多线程间的通信
- 互联网平台技术迁移经验杂谈
- 如何打tag3
- 纯div+css水平三级导航菜单
- dos命令导出指定类型的文件列表
- vs2008 javascript 智能提示
- ORACLE10G AWR使用和分析