[Flex] ButtonBar系列——垂直布局

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
        <!-- 将非可视元素(例如服务、值对象)放在此处 -->
    </fx:Declarations>
    <s:ButtonBar id="btnBar" horizontalCenter="0" verticalCenter="0">
        <s:layout>
            <s:VerticalLayout gap="-1" />
        </s:layout>
        <s:dataProvider>
            <s:ArrayList source="[Red,Orange,Yellow,Green,Blue]" />
        </s:dataProvider>
    </s:ButtonBar>
</s:Application>

 

posted on 2015-10-15 12:05  晏过留痕  阅读(423)  评论(0)    收藏  举报