/**

* Inflate a new view hierarchy from the specified xml resource. Throws
* {@link InflateException} if there is an error.
*
* @param resource ID for an XML layout resource to load (e.g.,
* <code>R.layout.main_page</code>)
* @ param root Optional view to be the parent of the generated hierarchy (if
* <em>attachToRoot</em> is true)
, or else simply an object that
* provides a set of LayoutParams values for root of the returned
* hierarchy (if <em>attachToRoot</em> is false.)
* @param attachToRoot 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.
* @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.
*/
public View inflate(int resource, ViewGroup root, boolean attachToRoot) {

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. PHP计算器
  2. PHP如何将指定字符串后几位字符转为大写
  3. PHP算法练习八:判断给定的三个数是否能构
  4. PHP如何输出20世纪的所有闰年
  5. 详解ThinkPHP怎么实现图片上传
  6. PHP循环学习九:获取给定两数间的最大公因
  7. 如何通过PHP程序输出全部三位回文数
  8. PHP怎么通过给定符号来拆解字符串
  9. 如何通过PHP将“if”添加到给定字符串的
  10. PHP如何判断两个数中哪个数最接近值100