eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
960 stars 148 forks source link

Hide the header for some data #23

Closed vincentbrison closed 9 years ago

vincentbrison commented 9 years ago

Hello, thanks for that early library ! I would like to know if it is possible to disable the sticky headers for some rows ? I means, would it be possible to ignore rows which return a negative number through getHeaderId() by example ? In facts I need to start displaying sticky headers only for index 1 and more (and thus ignore row at index 0).

I tried to hide the header by setting its visibility to GONE in the method onBindViewHolder, but the corresponding header is still draw.

Any idea how to implement such behavior ?

Thanks you

vincentbrison commented 9 years ago

Thank you for being that much reactive ! Seems to work like a charm :+1: . Do I let this issue open until your changes are pushed into maven ?

leruaa commented 9 years ago

Yes, I will close this issue when the next version will be published.

To sum up, setting header visibility to GONE or HIDDEN now works as expected.