futuredapp / infinity

[Deprecated] Infinite paginated RecyclerView scrolling
MIT License
27 stars 8 forks source link

Few Items makes footer stay on "Loading" #14

Open edwardhuerta opened 7 years ago

edwardhuerta commented 7 years ago

Hi!

I am using your code in my app where I am retrieving photos from flickr. I have a simple setup atm. What is happening is that I am retrieving about say, 4 photos that fill up half the screen of the phone. The problem is that the code does not request a second page to be fetched (it does not call the filler) and the button stays on Loading.

My question is, does it support this? Or does it only activate when the content goes below the boundary of the screen and then we scroll, which results in a normal call to the filler.

What I am expecting to occur is:

  1. I fetch data with offset 0
  2. data returns and fills up the Reyclerview only half way of the screen
  3. your code calls the Filler again, hence, triggering a second fetch with offset x
  4. data returns. the second half of the screen is filled.
  5. stop

Thanks in advance!

skywall commented 7 years ago

Hi,

loading should work even the display isn't completely filled up with item (as you might see on "demo" git), but we had some issues with this. The problem isn't solved at all probably. Can you gave us information about device and OS version you are running on? Can you provide the item layout you are adding to RecyclerView resp. adapter?

Thanks.

radimvaculik commented 7 years ago

@edwardhuerta Could you give us some more information as @skywall mention in previous comment https://github.com/thefuntasty/infinity/issues/14#issuecomment-271090031. Thanks!