1、LayoutInflater inflater = (LayoutInflater)context.getSystemServiceContext.LAYOUT_INFLATER_SERVICE);
2、LayoutInflater inflater = LayoutInflater.from(context);
3、LayoutInflater inflate = getLayoutInflater();
1、LayoutInflater inflater = (LayoutInflater)context.getSystemServiceContext.LAYOUT_INFLATER_SERVICE);
2、LayoutInflater inflater = LayoutInflater.from(context);
3、LayoutInflater inflate = getLayoutInflater();