AbsoluteLayout layout = (AbsoluteLayout) this
.findViewById(R.id.include1);
AbsoluteLayout.LayoutParams params =
new LayoutParams(Cm, Cm, 100, 100);
TextView[] days = new TextView[31];
days[0] = new TextView(this);
days[0].setText("1");
days[0].setTextColor(Color.BLACK);
layout.addView(days[0],params);
days[1] = new TextView(this);
days[1].setText("2");
days[1].setTextColor(Color.BLACK);
params.x=200;
params.y=200;
layout.addView(days[1],params);
.findViewById(R.id.include1);
AbsoluteLayout.LayoutParams params =
new LayoutParams(Cm, Cm, 100, 100);
TextView[] days = new TextView[31];
days[0] = new TextView(this);
days[0].setText("1");
days[0].setTextColor(Color.BLACK);
layout.addView(days[0],params);
days[1] = new TextView(this);
days[1].setText("2");
days[1].setTextColor(Color.BLACK);
params.x=200;
params.y=200;
layout.addView(days[1],params);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货