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

loadMore #63

Open
tafelito opened this issue May 20, 2018 · 1 comment
Open

loadMore #63

tafelito opened this issue May 20, 2018 · 1 comment

Comments

@tafelito
Copy link

Hi, this library is great! This is not an issue. I'm creating a library wrapper for React Native and I wanted to know how hard would it be to add a loadMore to the FoldableList, so when you reach the last item (or a threshold) you can add more items to the list. I'll be more than glad to create a PR for this if I can figure it out how to do this myself

Thanks!

@alexvasilkov
Copy link
Owner

Hi. Hm, I don't think this feature should be introduced to the library itself, have you seen such feature integrated directly into ListView or RecyclerView? :)

I think you can implement "loadMore" feature using fold rotation listener with FoldableListLayout.setOnFoldRotationListener(...) method. Once items list is updated you can call FoldableListLayout.getAdapter().notifyDataSetChanged() as you would usually do.

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