Using the TileLayout class to form a grid of items : TileLayout « Container « Flex






Using the TileLayout class to form a grid of items

 

<?xml version="1.0" encoding="utf-8"?>
<s:Application 
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <s:layout>
        <s:TileLayout orientation="columns" requestedRowCount="2" />
    </s:layout>
    <mx:Button label="One" />
    <mx:Button label="Two" />
    <mx:Button label="Three" />
</s:Application>

   
  








Related examples in the same category