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).

enter image description here


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -