2

I Would like to achieve the following

enter image description here

I was able to use the following library https://github.com/Hongchae/CoverFlowPager

and after some customization i was able to have this

enter image description here

Now i want to adjust the pages to appear like the first image

Appreciate your help ,Thanks in advance

Abdullah Adel Essa
  • 351
  • 1
  • 4
  • 9

1 Answers1

1

For showing the preview of left and right fragments you have to set the following values:

// This for avoiding the truncate effect

viewpager.setClipToPadding(false);

// This for setting the padding for seeing the other fragments

viewpager.setPadding(left,0,right,0);

To modify the space between the fragments in the viewpager use

viewpager.setPageMargin(int);

probably this post will help you ViewPager show next and before item preview on screen

Community
  • 1
  • 1
michoprogrammer
  • 1,159
  • 2
  • 18
  • 45