I've a design, where I have to have multiple headers while using VerticalGridSupportFragment
. I know, that headers can be easily added if you use ListRow, where you just pass in headerItem and adapter, but if not mistaken, then that is not a possibility for VGS Fragment.
How can I achieve this? Maybe small example?
The data I have:
BIG-OBJ:
title: "1"
list-of-small-objs: small1, small2, small3
BIG-OBJ2:
title: "2"
list-of-small-objs: small1, small2, small3
...
Image of the idea:
So I want to display headerItem as BIG-OBJ.title
and it's content as BIG-OBJ.list-of-small-objs
.
- Can this be done using VGS Fragment?
- Small example of the same idea would be great.