android gridview header solution with adapter recycling cells
问题 I've seen many solutions about how to implement a gridview header that scrolls along with the rest of the grid. Most of them consist in creating a listlayout or relativelayout with a header view and a gridview all inside a scrollview. This solution has the problem that the scrollview doesn't know the size of the grid so to overcome that you need to extend grid view like here: https://stackoverflow.com/a/4536955/751180 But the problem is that but doing so you are forcing the gridview to render