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);