1,LayoutInflater layoutInflater = LayoutInflater.from(context);
2,LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3,layoutInflater.inflate(resourceId, root);
可以调取其他 layout 的 view。
1,LayoutInflater layoutInflater = LayoutInflater.from(context);
2,LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
3,layoutInflater.inflate(resourceId, root);
可以调取其他 layout 的 view。