I want a RecyclerView.LayoutManager
that allows me to specify different span counts for different rows as a repeating pattern. For example 2,3 with 10 items would look like this:
-------------
| | |
| | |
-------------
| | | |
| | | |
-------------
| | |
| | |
-------------
| | | |
| | | |
-------------
I can think of a way to hack this with GridLayoutManager
and SpanSizeLookup
but has anybody come up with a cleaner way to do this?