How to create list with carousel effect in android
Asked Answered
I

1

2

I've gone through with many solutions but still looking for best. I want to do something like this

This should be a list containing custom cells and it shall be showing one view highlighted at one time and two adjacent views(pre/post) must be shown slightly.

If anybody have any experience in this work please share. Any help would be highly appreciated.

Illusion answered 22/10, 2013 at 4:24 Comment(3)
I'm not kinda mobile/design developer, but certainly you need thread hereAyacucho
Hello. Can you please share how you solve it ? I need same 3d carousel horizontally.Froehlich
Have you implement it ?Fulton
A
0

for detail visit

private void Calculate3DPosition(CarouselItem child, int diameter,
            float angleOffset) {
        angleOffset = angleOffset * (float) (Math.PI / 180.0f);
        float y = (float) (diameter / 2 * Math.sin(angleOffset)) + diameter / 2
                - child.getWidth() / 2;
        float z = diameter / 2 * (1.0f - (float) Math.cos(angleOffset));
        float x = (float) (-   diameter / 2 * Math.cos(angleOffset) * 0.5);
        child.setX(x + 250);
        child.setZ(z);
        child.setY(y - 150);
    }
Ashling answered 18/12, 2014 at 12:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.