RecyclerView Endless Infinite Scrolling Issue

前端 未结 8 600
长发绾君心
长发绾君心 2020-12-31 01:36

I am trying to implement Endless Infinite Scrolling with RecyclerView, but I am only getting first 10 records, not getting next 10 records and even not getting any progress

8条回答
  •  Happy的楠姐
    2020-12-31 01:41

    Try changing the

    int i = start + 1; i <= end; i++
    

    in the for loop to

    int i = start + 1; i < end; i++
    

    The <= validation adds an extra item.

提交回复
热议问题