1TextView tv = new TextView(mContext);
2RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
3 ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
4params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);
5params.leftMargin = 107
6...
7mRelativeLayout.addView(tv, params);