我有一个包含很多字段的表单。在调用一个新的 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);