-
Notifications
You must be signed in to change notification settings - Fork 94
Evaluate replacing R2RTLViewPager and R2ViewPager with ViewPager2 #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks, such contribution is most welcome! And yes, as far as I know Right now, I'm focused on releasing the |
Initial investigation
I replaced all of these locally and am trying to get through errors and how best to replace some of the old ViewPager code (like setPrimaryItem). Right now when I swipe to page, it goes from chapter to chapter instead of page to page. Clicking the edge pages properly. |
@stevenzeck This sounds great, thanks for taking a look into this.
For |
I was hesitant at first to put the logic that determines which one to use in EpubNavigatorFragment. But now I don't think it's horrible to just put it there. I pushed a first round to the testapp and navigator repositories. |
I don't know the history of the usage of R2RTLViewPager, was it used just for RTL support? ViewPager2 supports RTL natively.
Migration guide: https://developer.android.com/training/animation/vp2-migration
Jetpack library reference: https://developer.android.com/jetpack/androidx/releases/viewpager2
Class docs: https://developer.android.com/reference/androidx/viewpager2/widget/ViewPager2
I had looked at this before but had personal things come up, so had to stop. Once readium/r2-navigator-kotlin#148 is merged I can take another look.
The text was updated successfully, but these errors were encountered: