This is a continuation of our previous tutorial on displaying items in a RecyclerView . If you had not gone through view it by clicking on this link.
To display items in a horizontal way we use a grid layout manager and set the spancount to 1.
i.e Replay this line
With
NOTE:Setting spancount to 2 will display 2 items per column.
Your main activity should be as shown below: