GridLayoutManager
Constructor used when layout manager is set in XML by RecyclerView attribute "layoutManager". If spanCount is not specified in the XML, it defaults to a single column. spanCount
Creates a vertical GridLayoutManager
Parameters
context
Current context, will be used to access resources.
spanCount
The number of columns in the grid
Parameters
context
Current context, will be used to access resources.
spanCount
The number of columns or rows in the grid
orientation
Layout orientation. Should be HORIZONTAL or VERTICAL.
reverseLayout
When set to true, layouts from end to start.