<?xmlversion="1.0"encoding="utf-8"?>
<s:MXDataGridItemRendererxmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%"height="100%"
autoDrawBackground="false"
creationComplete="mxitemrenderer1_creationCompleteHandler(event)"
>
<s:layout>
<s:VerticalLayoutverticalAlign="middle"horizontalAlign="center"/>
</s:layout>
<fx:Script>
<![CDATA[
importmx.collections.ArrayCollection;
importmx.controls.Text;
importmx.events.FlexEvent;
protectedfunctionmxitemrenderer1_creationCompleteHandler(event:FlexEvent):void
{
vartxt1:String=lbl.text.split(",")[0];
vartxt2:String=lbl.text.split(",")[1];
lbl1.text=txt1;
lbl2.text=txt2;
}
]]>
</fx:Script>
<fx:Declarations>
<!--将非可视元素(例如服务、值对象)放在此处-->
</fx:Declarations>
<s:Labelid="lbl"text="{dataGridListData.label}"visible="false"height="0"/>
<s:VGroupid="vp"width="100%"height="100%"gap="2">
<s:Labelid="lbl1"color="0x000000"textAlign="center"verticalAlign="middle"width="100%"/>
<mx:HRulewidth="100%"chromeColor="0x999999"alpha="0.3"/>
<s:Labelid="lbl2"color="0x000000"textAlign="center"verticalAlign="middle"width="100%"/>
</s:VGroup>
</s:MXDataGridItemRenderer>