First: that's very odd as I'd expect the ViewPager
to consume all horizontal swipes automatically unless you are overriding some gesture related method. For example, I've used a MapFragment
within a ViewPager
before and unless I scrolled up on the map first, the horizontal swipes would always trigger the view pager.
Second, I don't think you can make your ViewPager
more inclusive than it already is in picking up x-direction swipes. What I would do instead is simply add a gesture listener to your edittext. If you do this, you could use an Inteface
to the ViewPager
activity to trigger the page to change on swipe.
Btw this should also still allow clicks on the EditText
itself so you could still use it as intended.