Is it possible to use categories or some sort of headers with a GridView
in Android?
I put together a quick illustration of what I was thinking about:
Thanks a lot.
You can use Stickygridheaders library directly or as a model to create your own widget.
probably this code will help you. This is SectionedGridRecyclerViewAdapter, result looks like this:
I think You can do it but you have to implement Jeff Shrkey's SeparatedListAdapter
There isn’t an easy way of creating these separated lists, so I’ve put together SeparatedListAdapter which does it quickly. To summarize, we’re creating a new BaseAdapter that can contain several other Adapters, each with their own section headers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With