question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get Endless Scroll to work

See original GitHub issue

Hi,

I have followed the documentation on how to setup endless scrolling. I’ve been able to create and populate a View Holder. From what I understand, endless scrolling is automatic when an EndlessScrollListener is specified by .setEndlessScrollListener(). All of which I have implemented or defined respectively.

public class EventFragment extends PagingFragment implements Callback<EventList>, FlexibleAdapter.EndlessScrollListener{

My adapter has been setup with:

eventAdapter .setLoadingMoreAtStartUp(true) .setEndlessTargetCount(15) .setEndlessScrollThreshold(1) .setEndlessScrollListener(this, progressItem) .setTopEndless(false)

Making use of the exact same ProgressItem used in the demo application.

I have setup a rest API, using Square’s Retrofit. The API is tested and working. My problem sets in where on getting to the bottom of the RecyclerView after fetching Page 1, onLoadMore() isn’t called by the adapter when the threshold is reached.

If it’s any help, my environment is Windows 10, building to an Android Marshmallow(6.0.1).

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Sep 12, 2017

Understood, I’d find a different resolution by extending FlexibleAdapter. Thanks for the clarification 😃

0reactions
davideascommented, Sep 12, 2017

@ACK19, I imagined that you couldn’t change it. However, perPage is the page size to set, as I can see. In theory, you should receive your page number based on the total items in the adapter. I don’t know if you have to do a +1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Infinite/Automatic Scrolling On Windows 10/11 PC - YouTube
How to Fix Automatic/ Infinite Scrolling On Windows 11/10 PC,Windows 10/11 Scrolling by itself Quick Fixes,Fix Windows 10/11 Keeps Scrolling ...
Read more >
Endless scrolling on Windows apps only - Microsoft Community
Hi, so yesterday I noticed when I clicked on my windows menu, that it would endlessly scroll down to the bottom.
Read more >
How to get infinite scroll to work? - Stack Overflow
Show activity on this post. I'm trying to get this infinite load script to work in my project. Whatever I try, I can't...
Read more >
Trying to set up Infinite scroll but it wont work - WordPress.org
I am trying to set up infinite scroll on my article page. The theme i am using comes with infinite scroll but when...
Read more >
The Infinite Scroll: Why It's So Addictive and How to Break Free
Use a browser plugin to control infinite scrolling within your web browser. To avoid the extra memory usage, you can block all JavaScript ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found