ViewGroup.LayoutParams
2016-07-23 14:27
423 查看
LayoutParams are used by views to tell their parents how they want to be laid out. (LayoutPrarms
用于表示控件想要在其父控件中摆放位置。)
See ViewGroup Layout Attributes for a list of all child view attributes that this class supports.
(1)The base LayoutParams class just describes how big the view wants to be for both width and height.
For each dimension, it can specify one of:
FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding)
an exact number
(2)There are subclasses of LayoutParams for different subclasses of ViewGroup.
For example, AbsoluteLayout has its own subclass of LayoutParams which adds an X and Y value.
From:https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
用于表示控件想要在其父控件中摆放位置。)
See ViewGroup Layout Attributes for a list of all child view attributes that this class supports.
(1)The base LayoutParams class just describes how big the view wants to be for both width and height.
For each dimension, it can specify one of:
FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding)
an exact number
(2)There are subclasses of LayoutParams for different subclasses of ViewGroup.
For example, AbsoluteLayout has its own subclass of LayoutParams which adds an X and Y value.
From:https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
相关文章推荐
- ContentProvider 操作小实例 (了解)
- yii2读写分离配置
- php 获取昨天 今天 明天的时间
- php 实现get,set方式读取属性值
- php发送邮件email
- ThinkPhP 框架学习
- Yii中Flash数据的处理机制(源码分析)
- PHP学习之路之Smarty自定义函数(上)
- PHP实现清除MySQL死连接的方法
- Yii CModel中rules验证规则
- uboot中利用TFTP和NFS加载内核镜像和根文件系统
- 5. php设计模式:策略模式的实际应用
- php实现批量修改文件名称的方法
- PHP开启curl库的解决方法
- 关于thinkPHP框架中不同版本下在入口文件处绑定模块以及模块下的控制器的方法的不同...
- helloworld
- Php操作mysql常用函数
- PhpStorm中报 “Cannot run program git.exe, 系统找不到指定的文件” 错误的解决方法
- PHP二维数组去重
- 记PHPStudy-win10系统80端口被占用的经历