我当前状态的视频,以便更好地了解我的情况:
\n视频
\RecyclerView 上面的所有内容都在 AppbarLayout 内
具有类似行为的 Reddit 应用示例:
\n视频
目标:
\n1-实现滚动屏幕,视图按从上到下的顺序排列
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]\nRun Code Online (Sandbox Code Playgroud)\nRecyclerView2-需要它与并ViewPager包含fragments包含一起工作RecyclerViews
3-保留RecyclerViews回收。
\n到目前为止我的解决方案:
\n协调器布局,AppBarLayout 与appbar_scrolling_view_behavior和scroll|exitUntilCollapsed。 …
android android-recyclerview android-coordinatorlayout android-appbarlayout android-viewpager2
android ×1