how do I make a TileGroup layout that has the jaggy edge on top?

半腔热情 提交于 2019-12-20 06:41:43

问题


I have spark.components.TileGroup that contains buttons.

I would like the buttons to appear like tabs on top of the ViewStack they serve

At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom

[ITEM 1][ITEM 2][ITEM 3][ITEM 4]
[ITEM 5][ITEM 6]

I would like it to look like this, with the jaggy edge on top

[ITEM 5][ITEM 6]
[ITEM 1][ITEM 2][ITEM 3][ITEM 4]

The order of the items is not important

How would I do this?


回答1:


Define a new layout that lays the tiles out the way you want.

some links to get your started. http://www.adobe.com/devnet/flex/articles/spark_layouts.html http://insideria.com/2009/05/flex-4-custom-layouts.html



来源:https://stackoverflow.com/questions/4094431/how-do-i-make-a-tilegroup-layout-that-has-the-jaggy-edge-on-top

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!