码迷,mamicode.com
首页 > 其他好文 > 详细

LayoutInflater

时间:2016-05-07 18:19:50      阅读:157      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!