Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android GridView with categories?

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:

enter image description here

Thanks a lot.

like image 497
Michell Bak Avatar asked Sep 13 '11 07:09

Michell Bak


2 Answers

You can use Stickygridheaders library directly or as a model to create your own widget.

like image 177
Andrei B. Avatar answered Sep 28 '22 04:09

Andrei B.


probably this code will help you. This is SectionedGridRecyclerViewAdapter, result looks like this:

enter image description here

like image 29
girlOnSledge Avatar answered Sep 28 '22 05:09

girlOnSledge