几种创建LayoutInflater对象的方法
LayoutInflater layoutInflater;
1.layoutInflater = Context.getLayoutInflater();
2.layoutInflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3.layoutInflater = LayoutInflater.from(this);
LayoutInflater layoutInflater;
1.layoutInflater = Context.getLayoutInflater();
2.layoutInflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3.layoutInflater = LayoutInflater.from(this);
评论功能维护中,当前仅展示历史评论。
第三中似乎最常用