Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new way to display Sticky Headers #52

Open
davideas opened this issue Feb 23, 2016 · 1 comment
Open

A new way to display Sticky Headers #52

davideas opened this issue Feb 23, 2016 · 1 comment

Comments

@davideas
Copy link

I wanted to test this project, but as the author said, it is deprecated, so I've worked on my implementation of the sticky headers still using a custom ItemDecoration but with a lot of advantages...
The project is https://github.com/davideas/FlexibleAdapter. Adding, removing, dragging items are also covered, header is automatically re-linked to the item below.

For information, I've also written an answer at this question: http://stackoverflow.com/questions/33018788/how-can-i-set-a-listener-inside-a-recyclerview-header-decor

EDIT of 29/03/2016
Sticky Headers are now clickable using same listeners of the ViewHolder, not using anymore ItemDecoration. A FrameLayout is instead used.

Finally, I agree with the author when he says that ItemDecoration is not the good way for sticky headers, and a custom LayoutManager or a ViewGroup should handle the HeaderView object. So I am searching help for this. The project SuperSlim is based on the LayoutManager, but it is a huge library: ~3400 lines for sections and sticky headers only(!?). However I did not test it for compatibility with my project.

This was referenced Feb 23, 2016
@AndroidDeveloperLB
Copy link

Nice !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants