設置列數 7列
GridLayoutManager layoutManager = new GridLayoutManager(this,7);
// layoutManager.setOrientation(GridLayoutManager.HORIZONTAL);
recyclerViewSelect.setLayoutManager(layoutManager);
設置行數 7行
GridLayoutManager layoutManager = new GridLayoutManager(this,7); layoutManager.setOrientation(GridLayoutManager.HORIZONTAL);
recyclerViewSelect.setLayoutManager(layoutManager);