如何制作顶部有锯齿边缘的TileGroup布局? [英] how do I make a TileGroup layout that has the jaggy edge on top?

查看:205
本文介绍了如何制作顶部有锯齿边缘的TileGroup布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有spark.components.TileGroup包含按钮。



我希望这些按钮在他们所服务的ViewStack的顶部显示为标签

目前,如果我在TileList中有6个物品,它会将其排列成2行,其中4个物品位于顶部拖车,2个位于底部,所以锯齿状边缘位于底部



<$第一项] [项目2] [项目3] [项目4]
[项目5] [项目6]

我希望看起来像这样, [项目5] [项目6]
[项目1] [项目2] [项目3] [项目4]

这些项目的顺序并不重要

我该怎么做?

有些链接可以获得你开始了。
http://www.adobe.com/devnet/flex/articles /spark_layouts.html
http://insideria.com/2009/05/flex-4-custom-layouts.html


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?

解决方案

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

这篇关于如何制作顶部有锯齿边缘的TileGroup布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆