Lines Matching refs:row
32 * row (and the padding between the squares) is determined by the user.
74 TableRow row = new TableRow(getContext());
77 row.setLayoutParams(params);
78 return row;
95 TableRow row = createTableRow();
102 addSwatchToRow(row, colorSwatch, rowNumber);
106 addView(row);
107 row = createTableRow();
113 // Create blank views to fill the row if the last row has not been filled.
116 addSwatchToRow(row, createBlankSpace(), rowNumber);
119 addView(row);
124 * Appends a swatch to the end of the row for even-numbered rows (starting with row 0),
125 * to the beginning of a row for odd-numbered rows.
127 private void addSwatchToRow(TableRow row, View swatch, int rowNumber) {
129 row.addView(swatch);
131 row.addView(swatch, 0);
137 * snaking form, every other row will need to compensate for the fact that the colors are added
145 // We're in a regular-ordered row
148 // We're in a backwards-ordered row.
163 * Creates a blank space to fill the row.