How to create a filmstrip style panel and get even spacing?

Dec 13, 2010 at 10:06 PM

I would like to create a carousel that's flat, much like a filmstrip. I've taken the CoverFlow2D class and modified it so it doesn't scale or change opacity.  This nearly gets me what I want, however the space between each element is calculated for me instead of a predefined value.  Where should I look to override the spacing calculation?  Or is there already a filmstrip type algorithm?

Coordinator
Mar 18, 2011 at 7:59 AM

Hi, sorry for the (very) late answer,

You have to create an algorithm that does that for you.

When the algorithm is called to layout an item, it knows : the size of the viewport, the offset of the current item (double value between -1/+1), and the number of items contained in the range -1/+1. With some maths, you should be able to do exactly what you want.