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)
    {
       
       
        LayoutParams layoutParams = new GridLayout.LayoutParams();
        layoutParams.width = LayoutParams.WRAP_CONTENT;
        layoutParams.height = LayoutParams.WRAP_CONTENT;
       
        layoutParams.rowSpec = GridLayout.spec(row);
        layoutParams.columnSpec = GridLayout.spec(col);
       
        _text.setLayoutParams(layoutParams);
        parent.addView(_text);
    }
public void setparentatrowandcolumn(gridlayout parent, int row, int col) { layoutparams layoutparams = new gridlayout.layoutparams(); layoutparams.width = layoutparams.wrap_content; layoutparams.height = layoutparams.wrap_content; layoutparams.rowspec = gridlayout.spec(row); layoutparams.columnspec = gridlayout.spec(col); _text.setlayoutparams(layoutparams); parent.addview(_text); }