4

I want to have coverflow effect using ViewPager. I found CoverFlowWidget since its extending Gallery widget which is deprecated its better to go on with ViewPager instead.Any idea how can I achieve this?

Community
  • 1
  • 1
Manoj
  • 2,799
  • 5
  • 30
  • 49

3 Answers3

3

I'm currently looking on how to do this too.

I think you should use : https://gist.github.com/8cbe094bb7a783e37ad1 and add a PageTransformer to the ViewPager.

magiccyril
  • 657
  • 1
  • 6
  • 14
1

Create a container (layout) to house your ViewPager. Set setClipChildren(false) on both the container and ViewPager. Set the ViewPager's width to container/2 if you want to show 2 whole pages (1/2 left, 1 center, 1/2 right)

cheezy
  • 446
  • 1
  • 5
  • 17
0

use ViewPager setPageMargin to make offscreen pages visible at the same time. Then use setPageTransformer to make cover flow animation.

Patt
  • 11
  • 2