String inflater = Context.LAYOUT_INFLATER_SERVICE;
LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(inflater);
LinearLayout linearLayout = null;求解
LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(inflater);
LinearLayout linearLayout = null;求解
你干脆这样写吧。 一句更好理解一些上两楼都说得对动态的渲染一个view. 通过
View view = layInflater.inflate(R.layout.xx, null);来得到一个新的view