0

How can i make a ViewPager Right-to-Left?
Not just sliding from opposite side but everything become RTL!

For example getPageWidth() should make ViewPager like this: enter image description here
Sepehr Behroozi
  • 1,780
  • 1
  • 17
  • 32
  • 0 down vote Reverse the fragment list. setCurrentItem(fragmentList.size() - 1); This will set current item to be the last item of the list, actually the 0th item (in the original list) of the list will be the last one in the reversed. – Nikola Despotoski Jul 07 '15 at 13:48
  • Yes i know this dude but what about reducing `pageWidth() `?? – Sepehr Behroozi Jul 07 '15 at 18:25
  • Look at this post: http://stackoverflow.com/questions/37071342/how-to-create-rtl-viewpager/37103408#37103408 This should work for you. – Itiel Maimon May 08 '16 at 18:37

0 Answers0