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

Sticky headers #32

Closed
davideas opened this issue Jan 31, 2016 · 2 comments
Closed

Sticky headers #32

davideas opened this issue Jan 31, 2016 · 2 comments
Milestone

Comments

@davideas
Copy link
Owner

While scrolling, an header or a section can be "sticky" to the top (or to the bottom?).
It should pushed away when scrolling in favor of a new headers.

@davideas davideas added this to the 5.0.0 milestone Jan 31, 2016
@davideas
Copy link
Owner Author

This functionality will be available with v5.0.0-b4.

@davideas
Copy link
Owner Author

A note for Sticky Headers
I have looked into the already existent libraries:

The one from timehop is really badly made... so I have chose as starting point the library from edubarr, but lot of improvements have been done that now the class looks very different from original one. It now takes only ~6kb (140 lines) to have this great functionality, However copyright has been added to the top of the class, just to be fair.
Removed unnecessary loops, removed many unnecessary and useless calls to the Adapter, optimized the cache mechanism, it has been customized to work only with FlexibleAdapter in order to be coherent with the Sections functionality, but most of all, it works also when headers/items are deleted, dragged, linked etc... -> all with a simple call enableStickyHeaders()

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

No branches or pull requests

1 participant