Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewpager with ObservableScrollView with Viewpager #274

Open
YJArc opened this issue Jul 11, 2017 · 1 comment
Open

Viewpager with ObservableScrollView with Viewpager #274

YJArc opened this issue Jul 11, 2017 · 1 comment

Comments

@YJArc
Copy link

YJArc commented Jul 11, 2017

I have a viewpager with fragments... one of the fragments has an observable scroll view with a viewpager and tabs. inside it i have a recyclerview.
However when scrolling the recyclerview the scrollview is never pushed up along with it until you reach the top of my header... How can I make it so the observable scroll view intercepts the touch until I reach the top. from there the recyclerview can handle touch. I see there are a couple of examples with viewpagers here but I'm having difficulty understanding them and I need a viewpager with an observable scroll view with another viewpager.

edit: this has a parallax effect on the tablayout for the viewpager inside observablescrollview

@YJArc
Copy link
Author

YJArc commented Jul 12, 2017

Using the FlexibleSpaceWithImageWithViewpagerTab2Activity sample code I was able to do as i requested (having Viewpager with Scroller with viewpager with recyclerview)
However, the emulator crashes consistently after some scrolling.
Will update if I find the cause

EDIT: After some searching, there are easier/cleaner/robust methods to do this using android desgin libs. particularly: http://blog.iamsuleiman.com/parallax-scrolling-tabs-design-support-library/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant