How to implement Endless scrolling using StaggeredLayoutManager

前端 未结 4 2171
暖寄归人
暖寄归人 2021-02-07 04:49

I already tried to implement the endless scrolling for LinearLayoutManager and it is successful and tried to copy the LinearLayoutManager implementation to StaggeredGridLayoutMa

4条回答
  •  佛祖请我去吃肉
    2021-02-07 05:02

    int mSpanCount = 2;
    
    int[] into = new int[mSpanCount];
    
    int firstVisibleItem = staggeredGridLayoutManager.findFirstVisibleItemPositions(into)[0];
    

提交回复
热议问题