How to configure GridLayoutManager
to display different viewtypes
in different rows?
For example I have 2 viewtypes
and RecycleView
displays the following:
[category] [category] [category]
[category] [item] [item]
[item] [item] [item] [item]
And what I want is:
[category] [category] [category]
[category]
[item] [item] [item] [item]
[item] [item]
The structure is very simple, first show categories
, then items
, if categories
ended, jump to next row.
Is there any out of the box configuration for GridLayoutManager
to achieve this behavior? or I should write my own LayoutManager
?