siralam / LoopingViewPager

A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
532 stars 64 forks source link

Rtl support #12

Closed hzandi closed 5 years ago

hzandi commented 5 years ago

how support rtl? or reverse autoScroll?

siralam commented 5 years ago

RTL should not be a problem. But it currently does not support changing the scroll direction yet (Since it would require a custom transformation. The existing transformation is using the default one provided by ViewPager)

hzandi commented 5 years ago

I wrote custom image slider with viewpager and PagerAdapter like this and use android:rotation="180" for item and view pager but it didn't work in android 9 (Pie) anymore :(

siralam commented 5 years ago

Adding rotation="180" as far as I know is not the correct way to do this... RTL is not simply mirroring everything.... e.g. Image should not be mirrored