Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TableLayout t1 = (TableLayout) findViewById(R.id.TABLE_NAME);
- TableRow tr = new TableRow(this);
- TableRow.LayoutParams rowParams = new
- TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);
- tr.setLayoutParams(rowParams);
- CheckBox ch1 = new CheckBox(this);
- ch1.setLayoutParams(new TableRow.LayoutParams(0));
- tr.addView(ch1);
- t1.addView(tr, new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));
Add Comment
Please, Sign In to add comment