TitleLayout for DataGroup
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark"> <mx:String id="txt">this is a test</mx:String> <s:Group> <s:Scroller> <s:DataGroup width="100%" itemRenderer="spark.skins.spark.DefaultItemRenderer"> <s:layout> <s:TileLayout requestedRowCount="2" requestedColumnCount="3" clipAndEnableScrolling="true" /> </s:layout> <s:dataProvider> <mx:ArrayCollection source="{txt.split(' ')}" /> </s:dataProvider> </s:DataGroup> </s:Scroller> <s:Rect width="100%" height="100%"> <s:stroke> <mx:SolidColorStroke /> </s:stroke> </s:Rect> </s:Group> </mx:Application>