小编Rin*_*nov的帖子

AppBarLayout 具有滚动行为替代/滚动时粘性视图/大高度 AppBarLayout 导致奇怪的滚动

我当前状态的视频,以便更好地了解我的情况:
\n视频
\RecyclerView 上面的所有内容都在 AppbarLayout 内

\n

具有类似行为的 Reddit 应用示例:
\n视频

\n

目标:
\n1-实现滚动屏幕,视图按从上到下的顺序排列

\n
a)[several views that need to scroll top until gone, their combined height is several screen sizes]  \nb)[view that scrolls until it reaches screen top and then sticks there]  \nc)[Recy\xd1\x81lerView that scrolls beneath view that sticks on screens top] or [ViewPager with fragments containing RecyclerViews]\n
Run Code Online (Sandbox Code Playgroud)\n

RecyclerView2-需要它与并ViewPager包含fragments包含一起工作RecyclerViews

\n

3-保留RecyclerViews回收。

\n

到目前为止我的解决方案:

\n

协调器布局,AppBarLayout 与appbar_scrolling_view_behaviorscroll|exitUntilCollapsed。 …

android android-recyclerview android-coordinatorlayout android-appbarlayout android-viewpager2

6
推荐指数
1
解决办法
883
查看次数