inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)
来源:互联网 发布:淘宝上零食店铺排名 编辑:程序博客网 时间:2024/05/23 11:47
翻译完英文就懂了
/**
//从一个指定的xml资源中填充一个新的视图层
* Inflate a new view hierarchy from the specified xml resource. Throws
* {@link InflateException} if there is an error.
*
* //参数resource :id用来一个xml布局资源被加载
* @param resource ID for an XML layout resource to load (e.g.,
* R.layout.main_page
)
* //参数root : 操作视图去成为父视图在生成的层次结果(如果 attachToRoot 时true)
* @param root Optional view to be the parent of the generated hierarchy (if
* //其他情况,提供一套从root的层次中返回布局的参数值改造一个简单的对象
* 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.)
* 这填充的参数层次是否附属于root参数
* @param attachToRoot Whether the inflated hierarchy should be attached to
* 如果不是,root只用来去创建对应的layoutParams子类从xml的根视图中
* the root parameter? If false, root is only used to create the
* correct subclass of LayoutParams for the root view in the XML.
* 返回根视图在填充的层次中。如果根提供了并且attachToRoot是true;其他情况它就是填充的xml文件的根视图
* @return 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.
*/
- inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)
- inflate(int resource, ViewGroup root, boolean attachToRoot)见解
- LayoutInflater.inflate(int resource, ViewGroup root, boolean attachToRoot)方法解析
- LayoutInflater.inflate(int resource, ViewGroup root, boolean attachToRoot)的使用
- LayoutInflater 的inflate(int resource, ViewGroup root, boolean attachToRoot)方法研究
- Android LayoutInflater.inflate(int resource, ViewGroup root, boolean attachToRoot)的参数理解
- Android LayoutInflater.inflate(int resource, ViewGroup root, boolean attachToRoot)的参数理解
- View inflate(resId, ViewGroup , boolean attachToRoot)和View inflate(int resource, ViewGrou)区别
- 关于LayoutInflater类inflate(intresource, ViewGroup root, boolean attachToRoot)方法三个参数的含义
- 关于LayoutInflater类inflate(intresource, ViewGroup root, boolean attachToRoot)方法三个参数的含义
- View.inflate(Context context, int resource, ViewGroup root)
- View的inflate(int resource, ViewGroup root)理解
- inflate (int resource, ViewGroup root)关于root 这个参数的最佳解释
- inflate (int resource, ViewGroup root)关于root 这个参数的最佳解释
- view 的 inflate(Context context, int resource, ViewGroup root) 方法 root 参数作用?
- Android LayoutInflate.from(...).inflate(...,boolean attachToRoot)方法中attachToRoot参数的意义
- 关于LayoutInflater.inflater(int resId,ViewGroup root,boolean attchtoroot)第三个参数的问题
- LayoutInflater.inflate()之attachToRoot
- RSA_实验吧
- Web应用性能优化思路
- vue.js——router
- onbeforeunload 事件
- leetcode(152). Maximum Product Subarray
- inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot)
- 安装完最小化 RHEL/CentOS 7 后需要做的 30 件事情(二)
- JDK 安装
- h3c smart link
- 909422229_Linux Shell脚本编程--curl命令详解
- vue2.0设置默认路由的代码,以及点击不同路由加上样式的api
- centos7 下安装minkube
- 字符串 排序-字符统计
- hdu6053 TrickGCD 莫比乌斯函数 容斥原理