kyogs
kyogs

Reputation: 6836

Android Cover Flow gallery and remove space between

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

Upvotes: 5

Views: 7420

Answers (5)

Anurag Srivastava
Anurag Srivastava

Reputation: 473

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.

Upvotes: 0

yaser
yaser

Reputation: 61

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.

Upvotes: 0

pengwang
pengwang

Reputation: 19956

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

Upvotes: 1

A N M Bazlur Rahman
A N M Bazlur Rahman

Reputation: 2300

Hey you can try: FancyCoverFlow and android-coverflow-widget

Upvotes: 3

Niraj Adhikari
Niraj Adhikari

Reputation: 1728

https://github.com/davidschreiber/FancyCoverFlow

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

Upvotes: 2

Related Questions