这是我的代码:
<s:List id="myList" itemRenderer="myItemRenderer" contentBackgroundAlpha="0.5" contentBackgroundColor="red" labelField="firstName"
>
<s:layout>
<s:BasicLayout clipAndEnableScrolling="false" />
</s:layout>
<s:dataProvider>
<s:ArrayCollection>
<fx:Object firstName="Bill" lastName="Smith" companyID="-15" />
<fx:Object firstName="Dave" lastName="Jones" companyID="-30" />
<fx:Object firstName="Mary" lastName="Davis" companyID="-45" />
<fx:Object firstName="Debbie" lastName="Cooper" companyID="-60" />
</s:ArrayCollection>
</s:dataProvider>
</s:List>
并且itemrederer是:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
implements="mx.managers.IFocusManagerComponent" autoDrawBackground="false"
>
<s:BitmapImage width="32" height="32" source="aa.jpg" />
<s:Label text="{data.lastName}" />
</s:ItemRenderer>
我想在其外的列表中显示标签,我使用此clipAndEnableScrolling="false"
但没有用,
所以我该怎么做,
感谢