I am developing an application that has a page where there should be a heading, followed by several types of recycler inside the viewpager. However, I do not know how to “hide” the title when scrolling down.
The following layout will not work:
- RecyclerView
- Header
- SlidingTabLayout
- ViewPager
- RecyclerView
Because the vertical scrollable view cannot be placed in another vertical scalable view. But this type of layout can be created differently because twitter did this:

So how to achieve this type of layout?
Proposal of a theoretical solution
If we had this layout:
- LinearLayout
- Header
- SlidingTabLayout
- ViewPager
- RecyclerView
And when the RecyclerView scrolls, we will manually move each element up so that the title gradually “hides” and the ViewPager is higher, could it work?