【发布时间】:2011-02-11 14:03:10
【问题描述】:
嘿,我正在尝试根据 dataprovider 中找到的内容更改 List 组件的 contentBackgroundColor。例如:
<s:ItemRenderer name="ir"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="true"
contentBackgroundColor="{(data.location == 'home')?0x000000:0x666666}">
不幸的是,这似乎被忽略了,因为列表只显示了默认的白色背景。任何人都可以提出解决方案吗?
【问题讨论】:
标签: apache-flex list flex4 flash-builder itemrenderer