LayoutInflater

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: ide

将一个xml layout文件转化为对应的View对象 this

return inflater.inflate(R.layout.slidelistview, null);
inflater = LayoutInflater.from(MainActivity.this);
相关文章
相关标签/搜索