listapache-flexflex3itemrendererzebra-striping

Flex 3: List with custom item renderer with "zebra striping" style


I want to apply a "zebra striping" style to my mx:List, the only way to do this is through code right? In that case how can I loop the items (in fact, items or item renderers?) to apply the individual background color?

Thanks in advance!


Solution

  • Very easy

     <mx:TileList id="tileList" alternatingItemColors="[#FFFFFF,#CCCCCC,#999999]" />