我正在尝试按照代码here以编程方式添加表格行/*FindTablelayoutdefinedinmain.xml*/TableLayouttl=(TableLayout)findViewById(R.id.SaleOrderLines);/*Createanewrowtobeadded.*/TableRowtr=newTableRow(this);tr.setLayoutParams(newTableRow.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));/*CreateaButtontobether