You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
I use the SuperRecyclerView in combination with an adapter that holds different views. This means the adapter is not tied to a list so I don't have many items (5 at max). The first 2 items cover less than the screen. I'm implementing a LoadMoreListener to do lazy fetching of the views which are still outside view-range. It only works when loading everything for the first time:
When I register a MoreListener through setupMoreListener(), the SRV is calling onMoreAsked the very first time. After refreshing, I set a new adapter and resetting the OnLoadListener but now it doesn't trigger onMoreAsked.
The text was updated successfully, but these errors were encountered:
Have you tried to call "setLoadingMore(false)" before setting new adapter and OnLoadListener.
As per my investigation your issue may be you have created new OnLoadListener and Adapter but you have not reset the "isLoadingMore" flag based on which OnLoadListener decides whether to call onMoreAsked() or not.
I assumed that was handled automatically for me once I notify the SRV about
data inserts/modifications. Let me try setting the loading flag manually...
Op 26 jun. 2016 06:24 schreef "rahul-padmakumar" [email protected]:
Hi PepijnK,
Have you tried to call "setLoadingMore(false)" before setting new
adapter and OnLoadListener.
As per my investigation your issue may be you have created new
OnLoadListener and Adapter but you have not reset the "isLoadingMore"
flag based on which OnLoadListener decides whether to call onMoreAsked() or
not.
Hi,
I use the SuperRecyclerView in combination with an adapter that holds different views. This means the adapter is not tied to a list so I don't have many items (5 at max). The first 2 items cover less than the screen. I'm implementing a LoadMoreListener to do lazy fetching of the views which are still outside view-range. It only works when loading everything for the first time:
When I register a MoreListener through setupMoreListener(), the SRV is calling onMoreAsked the very first time. After refreshing, I set a new adapter and resetting the OnLoadListener but now it doesn't trigger onMoreAsked.
The text was updated successfully, but these errors were encountered: