添加布局Flex UIComponent中, [英] Add layout to Flex UIComponent

查看:156
本文介绍了添加布局Flex UIComponent中,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何添加一个布局(一Horizo​​ntalLayout要具体)到Flex UIComponent中?

How can I add a layout (a HorizontalLayout to be specific) to a Flex UIComponent?

我工作在一个大的移动应用程序,所以我想避免使用额外的容器,如HGroups和更轻巧的组件工作。

I'm working on a large mobile application, hence I'd like to avoid using additional containers like HGroups and work with more lightweight components.

像往常一样,任何帮助将大大AP preciated!

As usual, any help would be greatly appreciated!

推荐答案

您不能,你并不真的需要。

You can't and you don't really need to.

您不能,因为只有Spark组件设计与封装布局机制。 MX组件不,你不能布局指定为UIComponent。

You can't, because only Spark components were designed with an encapsulated layout mechanism. mx components were not and you can't assign a layout to UIComponent.

您并不真正需要的,因为组已经设计得非常轻量级容器没有在他们的任何图形元素。他们唯一的目的就是布局等组成。

You don't really need to, because Groups were already designed to be very lightweight containers without any graphical elements in them. Their only purpose is to layout other components.

现在,如果你真的要修剪下来,你总是可以创建自己的组,其中包含只有你真正需要的属性的副本,但在我看来,这将是一个巨大的时间浪费了一个几乎没有(如果有的话)明显增加。

Now if you really want to trim them down, you can always create your own copy of Group that contains only the properties you really need, but in my opinion that would be a huge time-waster for a barely (if at all) noticeable gain.

这篇关于添加布局Flex UIComponent中,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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