【发布时间】:2011-12-28 05:28:59
【问题描述】:
我有一个包含很多字段的表单。在调用一个新的 Intent(相机)并返回到主要活动后,所有字段都被填充。好的。
但是 tablelayout 失去了内部 TableRows。为什么?有没有办法保留tablerows?
tableMaterialObra = (TableLayout)findViewById(R.id.tlMaterialObra);
TableRow tr = new TableRow(this);
CheckBox cb = new CheckBox(this);
tr.addView(cb);
tableMaterialObra.addView(tr);
【问题讨论】:
标签: android android-layout tablelayout xoom