Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我是 flex4 的新手,我想知道写在 Application 标签下方的 s:layout 标签,这个布局适用于整个应用程序还是布局标签下方的元素。
layout 属性用于指定用于布局当前类中子项的布局对象。
您可以在一个 MXML 文件中声明多个布局对象。例如,您的 MXML 文件可能是一个带有 verticalLayout 对象的组,并包含另一个带有 HorizontalLayout 对象的组。
布局对象仅适用于分配给它的类的子项的布局。
hGroup 与将 HorizontalLayout 对象分配给 layout 属性的 Group 完全相同。这与 Flex 3 中的 HBox 的行为方式相似。