0

I want to implement a viewpager like the one below CoverView

I found this example Cover Flow feature using view pager android but it only inflates the image to the left and does't show the other two to its side.

Community
  • 1
  • 1
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67

1 Answers1

0

Try this

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

To set margin between two pages

viewpager.setPageMargin(10);
N J
  • 27,217
  • 13
  • 76
  • 96