80,351
社区成员
发帖
与我相关
我的任务
分享
RelativeLayout BH = FindViewById<RelativeLayout>(Resource.Id.panelBH);
……
……
BH.AddView(new TextView(this) { Text = d.Rows[i]["宽幅"].ToString(), Left = 0, Top = i * 15});
RelativeLayout.LayoutParams lo = new RelativeLayout.LayoutParams(-2, -2) { TopMargin = 30 * (i + 1), LeftMargin = 0 };
BH.AddView(new TextView(this) { Text = d.Rows[i]["宽幅"].ToString(), LayoutParameters=lo});