I have a WebView
in a ViewPager
.
And the ViewPager
seems to consume all the horizontal scrolling, so that I can't scroll in the WebView
(vertical works).
How can I achieve that the WebView
has got priority consuming the horizontal scrolling?
Try this
don't ask me why this code gets formatted like this,
1. implement a custom ViewPager Instance like this:
2. in your main (ViewPager) Activity add the following lines to the view pager
3. finally, run it :=) if the zoom level is at initial zoom, changes pages is allowed, all the other time you can navigate your web view
Ps.: *Don't forget* to change your ViewPager in your *.xml file with the CustomViewPager Class you just created
good luck :)