1 <?xml version="1.0" encoding="UTF-8" ?>
2 <base:View x:Class="NUITizenGallery.FrameLayoutTest1Page"
3 xmlns="http://tizen.org/Tizen.NUI/2018/XAML"
4 xmlns:base="clr-namespace:Tizen.NUI.BaseComponents;assembly=Tizen.NUI"
5 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6 BackgroundColor="White"
7 WidthSpecification="{Static LayoutParamPolicies.MatchParent}"
8 HeightSpecification="{Static LayoutParamPolicies.MatchParent}" >
14 <View x:Name="topLeft"
15 BackgroundColor="#FF66FF"
16 RelativeLayout.RightRelativeOffset="0.5"
17 RelativeLayout.BottomRelativeOffset="0.5"
18 RelativeLayout.FillHorizontal="True"
19 RelativeLayout.FillVertical="True"/>
21 <View x:Name="topRight"
22 BackgroundColor="Blue"
23 RelativeLayout.LeftRelativeOffset="0.5"
24 RelativeLayout.RightRelativeOffset="1.0"
25 RelativeLayout.BottomRelativeOffset="0.5"
26 RelativeLayout.FillHorizontal="True"
27 RelativeLayout.FillVertical="True"/>
29 <View x:Name="bottomRight"
31 RelativeLayout.RightRelativeOffset="0.5"
32 RelativeLayout.BottomRelativeOffset="1.0"
33 RelativeLayout.TopRelativeOffset="0.5"
34 RelativeLayout.FillHorizontal="True"
35 RelativeLayout.FillVertical="True"/>
37 <View x:Name="bottomLeft"
38 BackgroundColor="Yellow"
39 RelativeLayout.LeftRelativeOffset="0.5"
40 RelativeLayout.RightRelativeOffset="1.0"
41 RelativeLayout.BottomRelativeOffset="1.0"
42 RelativeLayout.TopRelativeOffset="0.5"
43 RelativeLayout.FillHorizontal="True"
44 RelativeLayout.FillVertical="True"/>
46 <View x:Name="parentBox"
47 BackgroundColor="1.0, 0.3, 0.4, 0.3"
48 RelativeLayout.LeftRelativeOffset="0.25"
49 RelativeLayout.RightRelativeOffset="0.75"
50 RelativeLayout.TopRelativeOffset="0.25"
51 RelativeLayout.BottomRelativeOffset="0.75"
52 RelativeLayout.FillHorizontal="True"
53 RelativeLayout.FillVertical="True"/>
55 <TextLabel x:Name="label"
56 Text="I'm button & Center Label"
59 HorizontalAlignment="Center"
60 RelativeLayout.LeftRelativeOffset="0.25"
61 RelativeLayout.RightRelativeOffset="0.75"
62 RelativeLayout.TopRelativeOffset="0.9"
63 RelativeLayout.BottomRelativeOffset="1.0"
64 RelativeLayout.FillHorizontal="True"
65 RelativeLayout.FillVertical="True"/>
67 <Button x:Name="button"
68 RelativeLayout.LeftRelativeOffset="0.033"
69 RelativeLayout.RightRelativeOffset="0.967"
70 RelativeLayout.TopRelativeOffset="0.25"
71 RelativeLayout.BottomRelativeOffset="0.75"
72 RelativeLayout.FillHorizontal="True"
73 RelativeLayout.FillVertical="True"
74 Text="I'm centered Button"
75 TextAlignment="Center"