Our friends "Henry" have a good and simple explain here.
And I think below constructor is suitable for most uses :
StaggeredGridLayoutManager(num , LinearLayoutManager.VERTICAL)
// where 'num' is your columns count
// LinearLayoutManager.VERTICAL = 1