| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <mx:TabNavigator xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| tabHeight="20" |
| paddingTop="0"> |
| |
| <fx:Script> |
| <![CDATA[ |
| |
| ]]> |
| </fx:Script> |
| |
| <!-- This is mainly used to test NavigatorContent and the halo navigator's resizeToContent property. --> |
| |
| <!-- NavigatorContent, 200 x 200, Rects at the 4 corners. --> |
| <s:NavigatorContent id="child1" backgroundColor="0x880000" width="200" height="200" > |
| <s:layout> |
| <s:BasicLayout /> |
| </s:layout> |
| <s:Rect width="20" height="20" x="0" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888800" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888800" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="179" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x008888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x008888" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="179" y="179" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x880088" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x880088" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="0" y="179" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888888" /></s:fill> |
| </s:Rect> |
| </s:NavigatorContent> |
| |
| <!-- NavigatorContent, 180 x 180, Rects at the 4 corners. --> |
| <s:NavigatorContent id="child2" backgroundColor="0x008800" width="180" height="180" > |
| <s:layout> |
| <s:BasicLayout /> |
| </s:layout> |
| <s:Rect width="20" height="20" x="0" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888800" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888800" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="159" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x008888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x008888" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="159" y="159" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x880088" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x880088" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="0" y="159" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888888" /></s:fill> |
| </s:Rect> |
| </s:NavigatorContent> |
| |
| <!-- NavigatorContent, 220 x 220, Rects at the 4 corners. --> |
| <s:NavigatorContent id="child3" backgroundColor="0x000088" width="220" height="220" > |
| <s:layout> |
| <s:BasicLayout /> |
| </s:layout> |
| <s:Rect width="20" height="20" x="0" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888800" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888800" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="199" y="0" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x008888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x008888" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="199" y="199" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x880088" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x880088" /></s:fill> |
| </s:Rect> |
| <s:Rect width="20" height="20" x="0" y="199" > |
| <s:stroke><s:SolidColorStroke weight="1" color="0x888888" /></s:stroke> |
| <s:fill><s:SolidColor alpha="1" color="0x888888" /></s:fill> |
| </s:Rect> |
| </s:NavigatorContent> |
| |
| <!-- Canvas, 180 x 180, Buttons at the 4 corners. --> |
| <mx:Canvas id="child4" backgroundColor="0x880000" width="180" height="180" > |
| <mx:Button width="20" height="20" x="0" y="0" /> |
| <mx:Button width="20" height="20" x="159" y="0" /> |
| <mx:Button width="20" height="20" x="0" y="159" /> |
| <mx:Button width="20" height="20" x="159" y="159" /> |
| </mx:Canvas> |
| |
| <!-- Canvas, 220 x 220, Buttons at the 4 corners. --> |
| <mx:Canvas id="child5" backgroundColor="0x880000" width="220" height="220" > |
| <mx:Button width="20" height="20" x="0" y="0" /> |
| <mx:Button width="20" height="20" x="199" y="0" /> |
| <mx:Button width="20" height="20" x="0" y="199" /> |
| <mx:Button width="20" height="20" x="199" y="199" /> |
| </mx:Canvas> |
| |
| </mx:TabNavigator> |