Skip to content

Refactor R2RTLViewPager using ViewPager2 for better RTL and scroll behavior #699

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

erkasraim
Copy link
Contributor

I’ve migrated R2RTLViewPager to R2RTLViewPager2.
The key changes are as follows:

  1. Applying RTL is now much simpler with ViewPager2.

  2. With ViewPager2's support for both horizontal and vertical orientation,
    WebViews can now be laid out vertically in scroll mode, which provides a better user experience.

  3. In R2RTLViewPager2’s onInterceptTouchEvent(),
    touch events are controlled based on the WebView's scroll state,
    allowing for smoother swipe handling when switching between pages containing WebViews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant