Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a TableRow and give it an ID
- TableRow tr = new TableRow(this);
- tr.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
- Button btnManageGroupsSubscriptions = new Button(this);
- btnManageGroupsSubscriptions.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 40));
- tr.addView(btnManageGroupsSubscriptions);
- contactsManagementTable.addView(tr);
- TableRow tr = new TableRow(this);
- TableLayout.LayoutParams tableRowParams=
- new TableLayout.LayoutParams
- (TableLayout.LayoutParams.FILL_PARENT,TableLayout.LayoutParams.WRAP_CONTENT);
- int leftMargin=10;
- int topMargin=2;
- int rightMargin=10;
- int bottomMargin=2;
- tableRowParams.setMargins(leftMargin, topMargin, rightMargin, bottomMargin);
- tr.setLayoutParams(tableRowParams);
Add Comment
Please, Sign In to add comment