how to make an adapter to inflate a gridview code example
Example: how to set recycler adapter in gridview
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));