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

Help needed #54

Open
hereo-android opened this issue Oct 25, 2016 · 1 comment
Open

Help needed #54

hereo-android opened this issue Oct 25, 2016 · 1 comment

Comments

@hereo-android
Copy link

Hi!
I've been using your library for a recycler view with a map header. Is there an option for the reclerview to scroll only when touching any element but the header? in order to make the map touchable?
Thanks

@kanytu
Copy link
Owner

kanytu commented Oct 25, 2016

Hey \o

I have not tested this solution but I suggest you wrap your mapview around another custom ViewGroup (like a RelativeLayout) which you must extend and override onTouch method.

On that onTouch method you should call:

recycler.requestDisallowInterceptTouchEvent(true); when the action is ACTION_DOWN

and call

recycler.requestDisallowInterceptTouchEvent(false); when the action is ACTION_UP or ACTION_CANCEL

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

2 participants