Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • What if the requirement of the design team is more complex than this? In my case, the "header" has a TabLayout (and some simple views above), and needs to be scrolled nicely so that the TabLayout alone would stay at the top of the screen when scrolling. Below the TabLayout, there is a ViewPager of 2 RecyclerViews as pages (belong to the TabLayout so it has 2 tabs). In this case, there is no single RecyclerView, and I'm not sure how to have the scrolling stop (pin at the top) for some Views of the RecyclerView even if I had just one. Commented Jul 6, 2023 at 7:47