I am developping an app that has a page where there must be a header followed by multiple recycler views within a viewpager. However, I do not know how to "hide" the header when scrolling down.
The following layout would not work :
- RecyclerView
- Header
- SlidingTabLayout
- ViewPager
- RecyclerView
Because a verticaly scrollable view cannot be put inside another verticaly scollable view. But it is possible to create this type of layout in another way because twitter did it :
So how does one achieve to create this type of layout?
Theorical solution suggestion
If we had this layout :
- LinearLayout
- Header
- SlidingTabLayout
- ViewPager
- RecyclerView
And when the RecyclerView is scrolled, we would move manually every element upwards so the Header would progressively be "hidden" and the ViewPager would be higher, could it work?