android - How to scroll/hide a parent header view from a RecyclerView scroll in child FragmentPagerAdapter? -
sorry, title bit confusing. i've included wireframe of screen below.
a - framelayout acts header in activity , houses fragment
b - slidingtablayout fragmentpageradapter in c
c - fragmentpageradapter houses fragments recyclerviews (grids) layout
what want accomplish:
as user scrolls through grid recyclerview in c, want header scroll , hidden (similar material design toolbars being hidden on scroll). want tabs in b locked on top of screen once hidden think part follow consequence of accomplishing scroll/hide on a.
ideally, i'd smooth scroll matches distance of user's scroll. backup plan have slide-up animation in fragment that's triggered scroll magnitude in c fragment (the trigger sent through c's fragment listener interface - parent activity).
Comments
Post a Comment