//获得inflater有3种方式,一种是通过getLayoutInflater();
//一种是通过getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//LayoutInflater.from(context)的静态方法;
LayoutInflater inflater = LayoutInflater.from(context);
convertView = inflater.inflate(R.layout.adapter_item, null);
获取LayoutInflater的三种方法
最新推荐文章于 2022-01-22 14:09:03 发布