grid recycler view code example
Example: how to set recycler adapter in gridview
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));