Fancycoverflow
Https://github.com/davidschreiber/FancyCoverFlow GitHub Address
Recent projects to achieve 3d gallery effect GitHub has already introduced him as a third-party dependency package into the project
There are several ways to implement a project based on the sample
I use the first of these here
This.fancyCoverFlow.setAdapter (adapter);
This.fancyCoverFlow.setUnselectedAlpha (4.0f);
This.fancyCoverFlow.setUnselectedSaturation (0.0f);
This.fancyCoverFlow.setUnselectedScale (0.5f);//No size selected
This.fancyCoverFlow.setSpacing (10);
This.fancyCoverFlow.setMaxRotation (0); Enter rotation degree
This.fancyCoverFlow.setScaleDownGravity (0.2f);//Lower Gravity
This.fancyCoverFlow.setActionDistance (Fancycoverflow.action_distance_auto);
Note: I began to want to enlarge this image. It turned out to be a little small for half a day. It suddenly occurred to me that I should do this in adapter.
And then set it up in adapter.
if (Reuseableview! = null) {
ImageView = (ImageView) Reuseableview;
} else {
ImageView = new ImageView (Viewgroup.getcontext ());
Imageview.setscaletype (ImageView.ScaleType.FIT_XY);
Imageview.setlayoutparams (New Fancycoverflow.layoutparams (480, 800));//Picture Made of 480*800
}
3D Gallery Use Fancycoverflow