2012-05-12 90 views

回答

0

row =(TableRow)findViewById(R.id.row); table.removeView(row);

+0

thank you.it works –

0
TableLayout tblLayout = (TableLayout) findViewById(viewID); 
tblLayout.removeAllViews(); 
0

一個簡單的方法來這樣做,它將設置行已經消失。

TableLayout tableLayout = findByViewId(R.layout.myTL); 
tableLayout.getChildAt(numberOfRow).setVisibility(View.GONE); 

希望此解決方案適合您的情況!