final LinearLayout ll_phnumber = (LinearLayout) findViewById(R.id.ll_contactedit_phonenumber);
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
View view = LayoutInflater.from(this).inflate(R.layout.view_item,
null);// 从XML中加载布局
final TextView tv1 = (TextView) view.findViewById(R.id.view_tv1);
final EditText tv2 = (EditText) view.findViewById(R.id.view_et);
// 存type
final ArrayList arrayList = new ArrayList();
ll_phnumber.addView(view);
view.setLayoutParams(lp);// 设置布局参数