It’s been ages since I posted any of my recently listening, so without further ado here’s this weeks SubMafia show from Italy.
Archive for June, 2011
So here’s a spark AccordionLayout that can be used like a standard layout in spark. It’s a class that I’ve been thinking about for some time, means an accordion is a navigator and I’ve put a fair bit of work into spark navigators. I’ve also been meaning to make this post for some time but have been tweaking things and wanted to wait. There’s still changes to be made but I think it’s at a point where I can finally release it into the wild.
One of the main thinking point when it comes to the spark approach and an Accordion is how to handle the position and size of the ButtonBar that makes up part of an Accordion. I finally decided to pass a reference to the ButtonBar through to the AccordionLayout, this layout then takes over the measuring of the ButtonBar and the positioning of the Buttons that make up the ButtonBar.
Two of the most interesting and useful properties are
layoutAllButtonBarBoundswhen set to true means that the AccordionLayout takes control of the sizing and positioning of the ButtonBar itself, making it match the size and position of the ISelectableList.
minElementSizecan be used to make all the elements visible at the same time (note that you will lose the advantage of virtualization).