I want to swipe between fragments, and I am currently using the viewpager. There is one problem though: When I swipe to the right, entries made in EditTexts of the current fragment need to be validated, and only if the input is ok, it should be swiped to the next page.
I managed to do that by disabling the viewpager when necessary, however then I also cannot swipe to the left (i.e. the previous fragment), since the method to validate the input (onPageScrolled(...)) is not called anymore due to the fact that the viewpager is disabled. It is only enabled again when I type something in the EditText.
I haven't found a way to deal with that problem yet.
So I'd like to know if there is an alternative to using fragments with swipe gestures? Maybe in combination with the viewpager's setCurrentItem() method, but without using the viewpagers scrolling-animation?