In my listview, I am trying to decide which is better. To have a fixed header or to just create a custom row that is part of the normal list that scrolls. As a fixed header, it stays at the top of the list while the items within the list scroll. The downside is that it takes up space. My alternative is just to create a custom quasi header that is created like all the other rows (only laid out differently). I’m not sure what is involved, whether this is possible and whether I will end up having issues to deal with. Has anyone done a custom header inside the adapter?
Share
Personally, I would go with a static header… A header is no use (IMO) if it’s not visible.
However, if you want to include it in your list that is possible. There are several different methods, but the one I would recommend is using
MergeAdapterby CommonsWare.I talked about it recently in another answer here.