I'm having a Viewpager with Tabs Holding Fragments, when the layout direction is RTL the order of tabs and fragments are reversed, however the direction of sliding animation of the fragments are still as in LTR, is there a way to reverse the sliding animation in case of RTL?
Asked
Active
Viewed 498 times
0
-
Imo, you have to handle it manually, there's no api which will do that for you out of the box. `if(isRtl()) -> show particular animation...` – azizbekian Feb 24 '17 at 22:13
-
Possible duplicate of [Changing viewPager swipe direction](http://stackoverflow.com/questions/32443558/changing-viewpager-swipe-direction) – TooCool Feb 24 '17 at 22:16
1 Answers
1
I am using RtlViewPager library from Duolingo for exactly these purposes (reverse fragment tabs order, change animation direction). It works like a charm for me.

lidkxx
- 2,731
- 2
- 25
- 44