SkinnableContainer mit constraint-based layout [Flex 4]
| Beiträge: 191 Registriert: Jun 2008
| 27.09.2011, 08:22
Guten Morgen Leute
Zuerst den Code:
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" xmlns:local="*" width="1024">
<fx:Declarations>
<!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, Wertobjekte) hier -->
</fx:Declarations>
<s:SkinnableContainer right="0" left="0" skinClass="skins.SettingsBarSkin">
<s:HGroup>
<s:Button width="50" />
<s:Button width="50" />
<s:Button width="50" />
</s:HGroup>
<s:HGroup left="0">
<s:Button width="50" />
<s:Button width="50" />
<s:Button width="50" />
</s:HGroup>
</s:SkinnableContainer>
</s:Application>
|
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | <?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<!-- host component -->
<fx:Metadata>
[HostComponent("spark.components.SkinnableContainer")]
</fx:Metadata>
<!-- states -->
<s:states>
<s:State name="disabled" />
<s:State name="normal" />
</s:states>
<!-- SkinParts
name=contentGroup, type=spark.components.Group, required=false
-->
<s:Line left="0" right="0" bottom="0">
<s:stroke>
<s:SolidColorStroke color="0xacacac" weight="1" />
</s:stroke>
</s:Line>
<s:Rect id="background" left="0" top="0" right="0" bottom="1">
<s:fill>
<s:BitmapFill source="@Embed(source='assets/footer.png')"/>
</s:fill>
</s:Rect>
<s:Group id="contentGroup">
</s:Group>
</s:Skin>
|
Kann mir jemand erklären warum beide HGroups links ausgerichtet werden? Bzw. was muss ich machen, damit eine Hgroup links die andere rechts ausgerichtet wird?
Gruss
emotion | Geändert von emotion am 27.09.11 um 08:24 Uhr | |
| | Beiträge: 147 Wohnort: Qo'noS Registriert: Nov 2009
| 28.09.2011, 14:07
|
|