首页 > 其他 > 详细

LayoutInflater

时间:2016-05-07 18:19:38      阅读:227      评论:0      收藏:0      [点我收藏+]

Instantiates a layout XML file into its corresponding View objects. It is never used directly. Instead, use getLayoutInflater() or getSystemService(String) to retrieve a standard LayoutInflater instance that is already hooked up to the current context and correctly configured for the device you are running on. For example: 

将一个xml layout文件转化为对应的View对象 

return inflater.inflate(R.layout.slidelistview, null);
inflater = LayoutInflater.from(MainActivity.this);

LayoutInflater

原文:http://www.cnblogs.com/liangouyang/p/5468729.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!