LayoutInflater官方文档
来源:互联网 发布:免费搜狐会员软件 编辑:程序博客网 时间:2024/05/29 16:50
inflate
Added in API level 1
View inflate (XmlPullParser parser, ViewGroup root, boolean attachToRoot)
Inflate a new view hierarchy from the specified XML node. Throws InflateException
if there is an error.
Important For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime.
parser
XmlPullParser
: XML dom node containing the description of the view hierarchy.root
ViewGroup
: Optional view to be the parent of the generated hierarchy (if attachToRoot is true), or else simply an object that provides a set of LayoutParams values for root of the returned hierarchy (if attachToRoot is false.)attachToRoot
boolean
: Whether the inflated hierarchy should be attached to the root parameter? If false, root is only used to create the correct subclass of LayoutParams for the root view in the XML.View
The root View of the inflated hierarchy. If root was supplied and attachToRoot is true, this is root; otherwise it is the root of the inflated XML file. 0 0
- LayoutInflater官方文档
- 官方文档
- 官方文档
- [SQLObject官方文档] 基础
- [SQLObject官方文档] 继承
- TPTP官方文档
- rsyncd.conf - 官方文档
- bind 官方文档
- spring官方文档
- hildon官方文档
- AIR官方文档
- SWFObject 2.0官方文档
- JNI官方文档
- Hadoop 官方中文文档
- oracle官方文档介绍
- oracle官方文档下载
- J2EE 6 官方文档
- was 官方文档
- 做软件开发对这几款软件应该不陌生
- Git配置SSH,并Push到GitHub上的相关流程
- 征信通产品原型设计文档
- Node.js GET与POST请求
- 来自公众号的SPRING(10)
- LayoutInflater官方文档
- 虚拟机与Windows文件传输
- 【未完待续】Linux磁盘分区
- Github 简明教程
- spring jpa报错
- winsocket入门学习
- 关于java中方法或者函数,形参,实参的个人理解
- @ERROR: Unknown module 'cookie.com' rsync error: error starting client-server protocol (code 5) at m
- centos7 安装php7及memcashe