android开发--LayoutInflater类

Inflater英文意思是膨胀,在android中大概是扩展的意思吧。 LayoutInflater的作用类似于 findViewById(),不同点是LayoutInflater是用来找layout下xml布局文件,并且实例化!而 findViewById()是找具体xml下的具体 widget控件(如:Button,TextView等)。 它的用法有2种: Java代码 1.LayoutInf
相关文章
相关标签/搜索