RE: Andorid AssetList infinte pagination

László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Hi!

I'm trying to use AssetListScreenlet in my Activity on android to list webcontents. I created an infinite pagination. The loading of the first page is ok, but when I call the screenlet's loadPage method to load the next page it loads the earlier pages too. It displays the new pages as the first page. In the log (onListPageReceived)
I see it loads the records from 0 to the requested page's end. 
I tried to remove previous data from recyclerView's adapter, but it won't work.

I hope that I can explained well my problem.
How can I resolve this problem?
What I do it wrong? 

Thanks for your help!
thumbnail
Victor Galan, modified 6 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts
Hey, 

This is the default behavior, it will load all the cells in "loading state" and it will fill them as you scroll down. In order to do an infinite list, you will have to create a new view and implement the BaseListViewModel yourself.

I hope it helps
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
I solved the problem by overriding AssetListView.showFinishOperation(). But I can't understand why are there a different behavior between  I use only portletNameId to get assets, or I use classNameId and customEntryQuery.