【问题标题】:Scroll nestedscrollview to end before child recyclerview scrolls在子 recyclerview 滚动之前滚动 nestedscrollview 以结束
【发布时间】:2015-10-21 14:56:28
【问题描述】:

这是我的layout

________________  ___   
|              |   ||
| Linear       |   ||
| Layout       |   ||
|              |   || nested scroll view
|______________|   ||
||            ||   ||
||            ||   ||
||   Child    ||  _||
||Recyclerview||
||____________||
|______________|      -end

如何让父 LinearLayout 首先滚动,当它到达末尾时,子 recyclerview 应该滚动。

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

【问题讨论】:

标签: android android-recyclerview android-scrollview nestedscrollview


【解决方案1】:

也许您应该在 RecyclerView 上使用 Header 的概念。看看这个帖子:Android 5.0 - Add header/footer to a RecyclerView

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-11
    • 1970-01-01
    • 1970-01-01
    • 2021-04-11
    • 2020-06-01
    • 1970-01-01
    • 2016-01-31
    • 1970-01-01
    相关资源
    最近更新 更多