View Pager Transformation bring to top like cards

我与影子孤独终老i 提交于 2019-12-05 08:00:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!