FoldableLayout
FoldableLayout copied to clipboard
loadMore
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!
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.