80,350
社区成员
发帖
与我相关
我的任务
分享
LayoutInflater inflater = (LayoutInflater) this.context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(R.layout.search_result, null);
rp = new RelativeLayout.LayoutParams(layout_width / 3 - 1,
layout_height / 2 - 1);
rp.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM,
RelativeLayout.TRUE);
rp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT,
RelativeLayout.TRUE);
this.addView(views.get(2), rp);