Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Andorid AssetList infinte pagination
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!
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!
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
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
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.