Flex Gumbo中如何通过columnCount, columnWidth, rowCount以及rowHeight属性设置FxList行数与列数的例子
By Minidxer | July 17, 2009
接下来的例子演示了Flex Gumbo中如何通过columnCount, columnWidth, rowCount以及rowHeight属性,设置FxList行数与列数。
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication name="FxList_layout_TileLayout_columnCount_test"
- xmlns="http://ns.adobe.com/mxml/2009"
- backgroundColor="white">
- <FxList id="list"
- horizontalCenter="0"
- verticalCenter="0">
- <layout>
- <TileLayout columnCount="3"
- columnWidth="100"
- rowCount="2"
- rowHeight="100"
- horizontalGap="0"
- verticalGap="0" />
- </layout>
- <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 » |
327 views
Tags: columnCount, columnWidth, Gumbo, layout, rowCount, rowHeight