grid view in recycler view in android code example
Example 1: how to set recycler adapter in gridview
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
Example 2: recyclerview kotlin grid layout
val manager = GridLayoutManager(activity, 5, GridLayoutManager.HORIZONTAL, false)