prolificinteractive / material-calendarview

A Material design back port of Android's CalendarView
https://prolificinteractive.github.io/material-calendarview/
MIT License
5.91k stars 1.32k forks source link

Swiping in RTL mode #1092

Open BassemBazzoun opened 3 years ago

BassemBazzoun commented 3 years ago

Swiping in RTL mode isn't working properly, where in RTL if you swipe right the past month should appear and vise versa, while reviewing the class CalendarPage I noticed that the main problem is by extending the ViewPager, which doesn't support the RTL. Google introduce its new version called viewpager2 that support RTL (https://stackoverflow.com/questions/46828728/android-rtl-viewpager-with-rtl-tablayout)

We believe that extending the ViewPager2 will fix this issue.

Note: clicking on arrow left and right will display the month properly. In RTL: Left = month+1 Right = month-1

Thanks for providing this great library.