Android - Dynamically Adding TableRow to TableLayout using an existing TableRow layout
问题 I'm trying to adding TableRows to a TableLayout, which is working fantastically. However, I'm running into some problems with layout parameters. The spacing between the TextViews within a TableRow isn't working out like I thought it would. My current code looks as follows. paymentTable = (TableLayout) findViewById(R.id.paymentTable); for(i = 0; i < cursor.getCount(); i++) { TableRow row = new TableRow(this); TextView payAmount = new TextView(this); payAmount.setText(cursor.getString(cursor