问题
I Would like to achieve the following
I was able to use the following library https://github.com/Hongchae/CoverFlowPager
and after some customization i was able to have this
Now i want to adjust the pages to appear like the first image
Appreciate your help ,Thanks in advance
回答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
来源:https://stackoverflow.com/questions/36767105/view-pager-transformation-bring-to-top-like-cards