tablelayout delete tablerow in android
问题 final TableLayout table = (TableLayout) findViewById(R.id.tableLayout); TableRow row = new TableRow(this); TextView t2 = new TextView(this); t2.setText("test"); row.addView(t2); Button bu = new Button(this); bu.setBackgroundResource(R.drawable.del); bu.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { //I need to delete the tablerow //how to do? } }); row.addView(bu); table.addView(row, new TableLayout.LayoutParams(WC, WC)); ** i want to delete tablerow