LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.calllog_item, null);
TextView tvCallTypeLogo = (TextView)layout.findViewById(R.id.iv_call_type_logo);
TextView tvName = (TextView)layout.findViewById(R.id.tv_name);
TextView tvNumber = (TextView)layout.findViewById(R.id.tv_number);
llPhone.addView(layout, LinearLayout.LayoutParams.FILL_PARENT, 80);
LayoutInflater加载布局文件
最新推荐文章于 2021-12-16 12:59:48 发布