leanback/src/main/java/androidx/leanback/widget/Grid.java
public static Grid createGrid(int rows) {
        Grid grid;
        if (rows == 1) {
            grid = new SingleRow();
        } else {
            // TODO support non staggered multiple rows grid
            grid = new StaggeredGridDefault();
            grid.setNumRows(rows);
        }
        return grid;
    }
/**
     * Creates a single or multiple rows (can be staggered or not staggered) grid
     */
Creates a single or multiple rows (can be staggered or not staggered) grid
Creates a single or multiple rows ( can be staggered or not staggered ) grid
public static Grid createGrid(int rows) {
        Grid grid;
        if (rows == 1) {
            grid = new SingleRow();
        } else {
            grid = new StaggeredGridDefault();
            grid.setNumRows(rows);
        }
        return grid;
    }
public static Grid createGrid ( int rows ) { Grid grid ; if ( rows == 1 ) { grid = new SingleRow ( ) ; } else { grid = new StaggeredGridDefault ( ) ; grid . setNumRows ( rows ) ; } return grid ; }
Creates a single or multiple rows (can be staggered or not staggered) grid
Creates a single or multiple rows ( can be staggered or not staggered ) grid
// TODO support non staggered multiple rows grid