摘要:
LayoutInflater介绍及例子主要是利用LayoutInflater的inflate方法相当于findViewById,只不过查找的是layout的资源LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);linearLayout1 = (LinearLayout) mLayoutInflater.inflate(R.layout.main, null);linearLayout2 = (LinearLayout) mLayoutInflat 阅读全文