Android swipe between fragments WITHOUT using viewpager

I want to navigate between fragments and I am currently using the viewpager. However, there is one problem: when I sit down to the right, the entries made in the EditTexts of the current fragment should be checked, and only if the input is in order, it should be transferred to the next page.

I was able to do this by disabling the viewer when needed, however I also cannot scroll to the left (i.e. the previous snippet) as the input validation method (onPageScrolled (...)) is no longer called due to the viewer disabled. It gets activated again when I type something into the EditText.

I haven't found a way to deal with this problem yet.

So, I would like to know if there is an alternative to using fragments with screen gestures? Maybe in conjunction with the setCurrentItem () method of the viewpager, but without using the scroll animation of the image viewer?

+3
android android-viewpager swipe horizontal-scrolling


source to share


No one has answered this question yet

See similar questions:

4
Control that allows the ViewPager to scroll dynamically with feedback on the interface

or similar:

5641
What is the difference between "px", "dip", "dp" and "sp"?
3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
702
How to detect when a fragment becomes visible in the ViewPager
481
How to disable swap by swiping in the ViewPager but still be able to scroll programmatically?
98
Prevent ViewPager from destroying splash screen



All Articles
Loading...
X
Show
Funny
Dev
Pics