I had a use case where I have to disable page swipe and jump to pages programmatically where I should show one page at a time. To center the page in the view, I call performPageSnap from onPageChange listener, but this page snap is done with an animation which is not needed for me. So I gave an option to perform page snap without animation in this PR.
I had a use case where I have to disable page swipe and jump to pages programmatically where I should show one page at a time. To center the page in the view, I call
performPageSnap
fromonPageChange
listener, but this page snap is done with an animation which is not needed for me. So I gave an option to perform page snap without animation in this PR.