recyclerview use gridview in android studio code example
Example: how to set recycler adapter in gridview
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));