I put the viewPager in the tutorial activity and made up of three fragments
Slide from right to left in the third fragment after passing the first second fragment
I want to move to a specific activity (login screen)
Help is sought
android
Refer to the code in the following link to implement ViewPager similarly.
If you look at the code of the onInterceptTouchEvent() function, on the last page, you check that the swipe occurs and call the onSwipeOutAtEnd() function. I think you can run the activity from that function. If the code above doesn't work, I think we can solve it easily if we approach it with a similar idea.
© 2024 OneMinuteCode. All rights reserved.