/**
     * Place the cell within the grid layout at the specified row and column.
     *
     * @param parent - the cell's parent
     * @param row - the row that the cell will be set at
     * @param col - the column that the cell will be set at
     */
public void setParentAtRowAndColumn(GridLayout parent, int row, int col)
    {
        // prepare the layout parameters for the EditText
        // TODO: Consider caching the layout params and only changing the spec row and spec column
        LayoutParams layoutParams = new GridLayout.LayoutParams();
        layoutParams.width = LayoutParams.WRAP_CONTENT;
        layoutParams.height = LayoutParams.WRAP_CONTENT;
        // set the row and column in the correct location of the Sudoku Board
        layoutParams.rowSpec = GridLayout.spec(row);
        layoutParams.columnSpec = GridLayout.spec(col);
        // set the layout params and add the EditText to the GridLayout parent
        _text.setLayoutParams(layoutParams);
        parent.addView(_text);
    }
public void setParentAtRowAndColumn(GridLayout parent, int row, int col)
{
// prepare the layout parameters for the EditText
// TODO: Consider caching the layout params and only changing the spec row and spec column
LayoutParams layoutParams = new GridLayout.LayoutParams();
layoutParams.width = LayoutParams.WRAP_CONTENT;
layoutParams.height = LayoutParams.WRAP_CONTENT;
// set the row and column in the correct location of the Sudoku Board
layoutParams.rowSpec = GridLayout.spec(row);
layoutParams.columnSpec = GridLayout.spec(col);
// set the layout params and add the EditText to the GridLayout parent
_text.setLayoutParams(layoutParams);
parent.addView(_text);
}
public void setParentAtRowAndColumn(GridLayout parent, int row, int col)
{
// prepare the layout parameters for the EditText
// TODO: Consider caching the layout params and only changing the spec row and spec column
LayoutParams layoutParams = new GridLayout.LayoutParams();
layoutParams.width = LayoutParams.WRAP_CONTENT;
layoutParams.height = LayoutParams.WRAP_CONTENT;
// set the row and column in the correct location of the Sudoku Board
layoutParams.rowSpec = GridLayout.spec(row);
layoutParams.columnSpec = GridLayout.spec(col);
// set the layout params and add the EditText to the GridLayout parent
_text.setLayoutParams(layoutParams);
parent.addView(_text);
}
public void setParentAtRowAndColumn(GridLayout parent, int row, int col)
{
// prepare the layout parameters for the EditText
// TODO: Consider caching the layout params and only changing the spec row and spec column
LayoutParams layoutParams = new GridLayout.LayoutParams();
layoutParams.width = LayoutParams.WRAP_CONTENT;
layoutParams.height = LayoutParams.WRAP_CONTENT;
// set the row and column in the correct location of the Sudoku Board
layoutParams.rowSpec = GridLayout.spec(row);
layoutParams.columnSpec = GridLayout.spec(col);
// set the layout params and add the EditText to the GridLayout parent
_text.setLayoutParams(layoutParams);
parent.addView(_text);
}