Closed vlytvyne closed 5 years ago
Do you have a project that I can look at? Sample app in repo still looks fine so I'd need to see how the library is used in your case.
Do you have a project that I can look at? Sample app in repo still looks fine so I'd need to see how the library is used in your case.
You can look at the code here: https://github.com/vlytvyne/StickyHeader
You are changing the background color if it's a header, but not changing it back when that view holder is re-bound for a non-header.
Remember, onBindViewHolder can be called on the same view holder multiple times. With your setup as it is, it could be sometimes binding a header, then later binding a non-header.
This isn't an issue with the library.
Before scrolling:
After few scrolls: