Android中的LayoutParams继承结构
来源:互联网 发布:学霸必备软件 编辑:程序博客网 时间:2024/05/20 08:25
LayoutParams是对应于容器类的一种结构。他们有个共同的起始类ViewGroup.LayoutParams。
看下面的继承结构,对应的容器类需要有不同的,特殊的属性时,就会继承父类的LayoutParams,
然后添加一些自己的属性。LayoutParams对象,是容器类对象一组属性的数据集合。
下面的几段程序是Android系统源码中抽取出来的LayoutParams的定义,结合上面的类结构查看:
(1)ViewGroup.LayoutParams:ViewGroup源码文件链接,滚动到5829行;
(2)ViewGroup.MarginLayoutParams:ViewGroup源码文件链接,滚动到6015行;
(3)LinearLayout.LayoutParams:LinearLayout源码链接,滚动到1794行;
(4)View子类中的LayoutParams:
是ViewGroup.LayoutParams类对象,参见View源码文件链接,滚动到2791行。
0 0
- Android中的LayoutParams继承结构
- LayoutParams继承于Android.View.ViewGroup.LayoutParams.
- LayoutParams继承于Android.View.ViewGroup.LayoutParams.
- LayoutParams继承于Android.View.ViewGroup.LayoutParams.
- Android中的LayoutParams属性
- android LayoutParams
- android LayoutParams
- Android LayoutParams
- android adapter继承结构
- android 的Java代码中的布局相关方法LayoutParams
- android ViewGroup中的LayoutParams的理解和说明
- jpa中的继承层次结构
- WindowManager中的LayoutParams
- 【Android】动态UI : LayoutParams.addRule(...) LayoutParams.addRule(..., ...)
- android学习---- WindowManager.LayoutParams
- android学习---- WindowManager.LayoutParams
- android学习---- WindowManager.LayoutParams
- android学习---- WindowManager.LayoutParams
- 一款经典简洁的CSS滑动门代码
- Android.mk的用法和基础
- HTML5比较成熟的技术
- 各种离职原因
- hdu 3068 最长回文 (Manacher算法)
- Android中的LayoutParams继承结构
- python 函数
- 详解Android中AsyncTask的使用
- Spring技术入门(六)
- robotium命令行启动
- oracle的if else查询
- Nested-Loop Join Algorithms
- c++ 中的重载全局new,delete
- 对指针、结构化的一些思考