How can I achieve this animation in android, here is the link below that I tried to change, but there is no way out, as shown below.

http://horribile.blogspot.in/2011/11/android-3d-carousel.html
https://github.com/rameshkec85/Android-VerticalCarousel
I have a function below for vertical animation as shown below.
private void Calculate3DPosition(CarouselItem child, int diameter, float angleOffset) { angleOffset = angleOffset * (float) (Math.PI / 180.0f); float x = 0.0f; float y = (float) (diameter / 2 * Math.sin(angleOffset)) + diameter / 2 - child.getWidth() / 2; float z = diameter / 2 * (1.0f - (float) Math.cos(angleOffset)); child.setItemX(x); child.setItemZ(z); child.setItemY(y); }
when I implement this as a result, the animation does not work properly, and also the image does not display in the center correctly.
Any body has the correct implementation of this animation, please send me.
Thanks at Advance.
source share