FoldableLayout icon indicating copy to clipboard operation
FoldableLayout copied to clipboard

loadMore

Open tafelito opened this issue 6 years ago • 1 comments

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!

tafelito avatar May 20 '18 03:05 tafelito

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.

alexvasilkov avatar Jun 20 '18 10:06 alexvasilkov