LayoutInflater inflater什么意思
LayoutInflater inflater = LayoutInflater.from(this);
其中:LayoutInflater和inflater是什么東西,好奇問一下,經常遇到不知道什么意思?
LayoutInflater inflater = LayoutInflater.from(this);
其中:LayoutInflater和inflater是什么東西,好奇問一下,經常遇到不知道什么意思?
2018-08-28
舉報
2018-09-08
/加載布局管理器
LayoutInflater?inflater?=?LayoutInflater.from(context);
//將xml布局轉換為view對象
View view=?inflater.inflate(R.layout.item_myseallist,parent,?
false
);