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);