Android Inflate

inflate就相当于将一个xml中定义的布局找出来.

三种方式可以生成LayoutInflater:
  
  LayoutInflaterinflater=LayoutInflater.from(this);
  
  LayoutInflaterinflater=getLayoutInflater();
  
  LayoutInflaterinflater=(LayoutInflater)this.getSystemService

原文来自于:

http://android.tgbus.com/Android/tutorial/201104/348009.shtml

原文地址:https://www.cnblogs.com/YangBinChina/p/3227467.html