滚动nestedscrollview到子recyclerview滚动之前结束

noi*_*nja 5 android android-scrollview android-recyclerview nestedscrollview

这是我的 layout

________________  ___   
|              |   ||
| Linear       |   ||
| Layout       |   ||
|              |   || nested scroll view
|______________|   ||
||            ||   ||
||            ||   ||
||   Child    ||  _||
||Recyclerview||
||____________||
|______________|      -end
Run Code Online (Sandbox Code Playgroud)

如何使父级LinearLayout先滚动,到达末尾时,子级recyclerview应该滚动。

默认情况下RecyclerView,在父级开始滚动之前,子级首先滚动到结尾。

Raf*_*809 0

也许您应该在 RecyclerView 上使用 Header 的概念。看一下这篇文章:Android 5.0 - Add header/footer to a RecyclerView