Android Cover Flow gallery and remove space between

7.3k Views Asked by At

I want to implement cover flow view as shown below image. I also tried with cover flow but cant achieved perfect view as show in image. Reduce the space between the items. enter image description here

 this.fancyCoverFlow.setSpacing(-90); 

I tried with this line and its working but other problem occur as shown below image not getting same spec to left and right . And scroll from left to right working fine but scroll from right to left not in correct way.

enter image description here

Updated: Try with this code

5

There are 5 best solutions below

1
On

https://github.com/davidschreiber/FancyCoverFlow

This should be of help for what you are trying to achieve.

1
On
2
On

if you implement gallery as use FancyCoverFlow, you can use this.fancyCoverFlow.setSpacing(-90); -90 may be modify

1
On

Use

this.fancyCoverFlow.setUnselectedAlpha(1.0f);
this.fancyCoverFlow.setActionDistance(FancyCoverFlow.ACTION_DISTANCE_AUTO);
this.fancyCoverFlow.setUnselectedScale(0.75f);

in your code, i hope this will help you.

0
On

I am also faced same problem, use following code in your code (FancyCoverFlow.java) file.

private void initialize()  {
this.transformationCamera = new Camera();
this.setSpacing(-200); // specifies space between images. }

In my case I am using FancyCoverFlow which extends Gallery.