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