RecyclerView Endless Infinite Scrolling Issue

前端 未结 8 567
长发绾君心
长发绾君心 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条回答
  •  礼貌的吻别
    2020-12-31 01:46

    Try notifyItemRangeChanged

    yourCurrentList.addAll(newData);    
    mAdapter.notifyItemRangeChanged(yourCurretList.size() + 1, newDataSize);
    

    I think this'll help you.

提交回复
热议问题