Flex Gumbo中如何通过layout属性设置FxList布局方向的例子
By Minidxer | July 15, 2009
接下来的例子演示了Flex Gumbo中如何通过在layout属性中设置VerticalLayout对象或HorizontalLayout对象以及TileLayout对象,设置FxList布局方向。
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication name="FxList_layout_test"
- xmlns="http://ns.adobe.com/mxml/2009"
- backgroundColor="white">
- <FxList id="list"
- horizontalCenter="0"
- verticalCenter="0"
- width="150"
- height="100">
- <dataProvider>
- <ArrayCollection>
- <String>1. The</String>
- <String>2. Quick</String>
- <String>3. Brown</String>
- <String>4. Fox</String>
- <String>5. Jumps</String>
- <String>6. Over</String>
- <String>7. The</String>
- <String>8. Lazy</String>
- <String>9. Dog</String>
- </ArrayCollection>
- </dataProvider>
- </FxList>
- </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
FxList, Gumbo |
No Comments » |
Tags: gap, Gumbo, horizontalGap, layout, verticalGap