在 NestedScrollView 中使用 PagedListAdapter

Sam*_*zar 9 android-nestedscrollview android-paging

我有一个RecyclerView有PagedListAdapter.

当我把RecyclerView里面NestedScrollView的PagedList不能计算列表的末尾所以开始请求新数据的连续突发。

主要问题是我应该如何使用PagedListAdapterinside NestedScrollView?

gia*_*olo 0

我遇到了类似的问题,这似乎是由于NestedScrollView提供无限维度而导致的,因此RecyclerView将布局其所有子项。所以我查看了 github 并找到了一个NestedScrollView解决问题的实现,View.MeasureSpec.AT_MOST方法是传递给RecyclerView:

https://gist.github.com/danaimset/abacaa50d746a4537686a08ecc33c1a9