android:LayoutInflater

LayoutInflater:一般用于查找res/layout下的布局文件,findViewById()一般是用于查找布局下的各种控件

一般:我们使用LayoutInflater.from(context).inflate(R.layout.layout, this, true) 来实现布局的动态加载

原文地址:https://www.cnblogs.com/luow/p/4119062.html