如何制作顶部有锯齿边缘的 TileGroup 布局? [英] how do I make a TileGroup layout that has the jaggy edge on top?
问题描述
我有包含按钮的 spark.components.TileGroup.
I have spark.components.TileGroup that contains buttons.
我希望按钮在它们提供的 ViewStack 顶部看起来像标签
I would like the buttons to appear like tabs on top of the ViewStack they serve
目前,如果我在 TileList 中有 6 个项目,它会将其布置为 2 行,顶部有 4 个项目,底部有 2 个项目,因此锯齿状边缘位于底部
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]
物品的顺序并不重要
我该怎么做?
推荐答案
定义一个新的布局,以您想要的方式布置图块.
Define a new layout that lays the tiles out the way you want.
一些帮助您入门的链接.http://www.adobe.com/devnet/flex/articles/spark_layouts.htmlhttp://insideria.com/2009/05/flex-4-custom-layouts.html
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
这篇关于如何制作顶部有锯齿边缘的 TileGroup 布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!