android layout_gravity
来源:互联网 发布:量化买盘指标源码 编辑:程序博客网 时间:2024/05/23 00:08
android:layout_gravity=”0x37”
意思就是
android:layout_gravity=”top|fill_horizontal”
Gravity类提供的常量列表如下:
NO_GRAVITY Constant Value: 0 (0x00000000)
LEFT Constant Value: 3 (0x00000003)
RIGHT Constant Value: 5 (0x00000005)
START Constant Value: 8388611 (0x00800003)
END Constant Value: 8388613 (0x00800005)
TOP Constant Value: 48 (0x00000030)
BOTTOM Constant Value: 80 (0x00000050)
CENTER Constant Value: 17 (0x00000011)
CENTER_HORIZONTAL Constant Value: 1 (0x00000001)
CENTER_VERTICAL Constant Value: 16 (0x00000010)
FILL_HORIZONTAL Constant Value: 7 (0x00000007)
FILL_VERTICAL Constant Value: 112 (0x00000070)
FILL Constant Value: 119 (0x00000077)
CLIP_HORIZONTAL Constant Value: 8 (0x00000008)
CLIP_VERTICAL Constant Value: 128 (0x00000080)
DISPLAY_CLIP_HORIZONTAL Constant Value: 16777216 (0x01000000)
DISPLAY_CLIP_VERTICAL Constant Value: 268435456 (0x10000000)
HORIZONTAL_GRAVITY_MASK Constant Value: 7 (0x00000007)
VERTICAL_GRAVITY_MASK Constant Value: 112 (0x00000070)
RELATIVE_HORIZONTAL_GRAVITY_MASK Constant Value: 8388615 (0x00800007)
RELATIVE_LAYOUT_DIRECTION Constant Value: 8388608 (0x00800000)
AXIS_CLIP Constant Value: 8 (0x00000008)
AXIS_PULL_AFTER Constant Value: 4 (0x00000004)
AXIS_PULL_BEFORE Constant Value: 2 (0x00000002)
AXIS_SPECIFIED Constant Value: 1 (0x00000001)
AXIS_X_SHIFT Constant Value: 0 (0x00000000)
AXIS_Y_SHIFT Constant Value: 4 (0x00000004)
参考:
https://developer.android.com/reference/android/view/Gravity.html
- android:layout_gravity
- android layout_gravity
- android layout_gravity 不起作用
- android:layout_gravity="bottom"
- android:layout_gravity 居中布局
- android的layout_gravity
- Android layout_gravity和gravity
- android:layout_gravity与android:gravity
- android:layout_gravity和android:gravity
- android:layout_gravity和android:gravity
- android:gravity 和 android:layout_Gravity
- android:gravity 和 android:layout_Gravity
- android:layout_gravity和android:gravity
- android:gravity与android:layout_gravity
- android:gravity 与android:layout_gravity
- android:gravity和android:layout_gravity
- android:layout_gravity和android:gravity
- android:gravity与android:layout_gravity
- Android最佳性能实践(一)——合理管理内存
- OkHttp3开发
- ip_vs实现分析1
- C++的巅峰如何到达
- 《感谢信》
- android layout_gravity
- SQL语句
- EAGLE初体验--SparkFun上学习--电路图制作
- sqlite 数据库性能调优
- 常用加密算法
- 调试错误
- Android时间转换星期 昨天 今天工具
- Linux 当前账户下profile位置
- Spark性能优化:数据倾斜调优