android中的 inflate是什么意思private View mMainLayout;mMainLayout = View.inflate(this,R.layout.main,null);

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/09 01:34:45
android中的inflate是什么意思privateViewmMainLayout;mMainLayout=View.inflate(this,R.layout.main,null);androi

android中的 inflate是什么意思private View mMainLayout;mMainLayout = View.inflate(this,R.layout.main,null);
android中的 inflate是什么意思
private View mMainLayout;
mMainLayout = View.inflate(this,R.layout.main,null);

android中的 inflate是什么意思private View mMainLayout;mMainLayout = View.inflate(this,R.layout.main,null);
用一个XML源填充view.
inflate(上下文对象,资源文件Id,父窗口组一般为null);