[NUI] Fix NUILayout not to set margin/padding on ContentPage.Content
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 18 Mar 2025 12:35:01 +0000 (21:35 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 25 Mar 2025 06:44:47 +0000 (15:44 +0900)
Since ContentPage uses custom layout to calculate its Content, Margin
and Padding on ContentPage.Content is not applied expectedly.
Therefore, instead, Margin and Padding is applied to a child view of
ContentPage.Content.

41 files changed:
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBounds.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPMarginMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPMarginPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPMarginPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsProp.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPMarginMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPMarginPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPMarginPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteBoundsPropPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatch.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPMarginMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPMarginPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPMarginPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsoluteMatchPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotBottomEnd.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotBottomEndPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotBottomEndPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotCenter.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotCenterPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotCenterPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotTopStart.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotTopStartPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePivotTopStartPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePos.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPMarginMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPMarginPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPMarginPaddingMargin.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPadding.cs
test/NUILayout/Examples/AbsoluteLayoutTest/AbsolutePosPaddingMargin.cs

index 4d6686d7782c919800bd2a205ff5200c6354814d..f19bcc3cf34d848aa6ce6057d6afb1cf31d2d8be 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -45,7 +45,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -53,7 +53,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index c3c3fbf69ac2305eab581df16e6c0a7193be8b87..903d829a1925f338e0c174b86b218dea30ecc728 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -55,7 +55,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 8df2259c9393722f66b0d8111748329f640505e9..e593ac8558bd6a62853c128c690a8b59dc1123e8 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -54,7 +54,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index e9ab236ed95ace9d25dcf3658c42d862d29fa494..7c372c3da2ca22fde1b2cc3a30ff8aac7799168c 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -56,7 +56,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 89ce463a5fc6d16faaaf8fa2b8b933609dccd06b..37f4da4c25eead9ed1f4014c4703cee575483f07 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -55,7 +55,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index c90fddc919c0dd79cc7e9a13003ec0b31963c817..6f5b12c746a854f6abc51e0332a0898d9d21fabf 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -57,7 +57,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index e231e9f3ee7cdca0cb171adae6f20cbbdfa6fdfb..663ae0bf66e192ec8ce714f458e1c1d5faa427f2 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -54,7 +54,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 2cab16e3b5f149d3ded81af194115b9066a4a52d..f7b7db069ccd3d6e71ba7cb343a1a4a0e93adecd 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 100, 100));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -56,7 +56,7 @@ namespace NUILayout
                 Margin = 100,
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(100, 100, 100, 100));
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 5d96193f5374ea4bad18bdf0b50899973ac37326..fd991eb4ce805aaefcdbe36ffdd73b78269d8d4d 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -45,7 +45,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -54,7 +54,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index e12d140b6df16a186394986eb622e9152f8d2bc8..41b85f00e3d4df595a3a7b1332af0a0463a051a8 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 Margin = 50,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -56,7 +56,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 830a9cc708eb92a3996d139dc669d9f8c20d0359..656c6cea28120838acb77c754fefe331b7feb475 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 50,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -55,7 +55,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 93b7972d144f72176f7537c00e940579917b59ba..54e14483e4145e8775cf4c0748056d407c56da24 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 50,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 Margin = 50
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -57,7 +57,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 1d9203ff518c435ec62327a5c91e8347a5b646ef..3e6cb40938116dfb9bfa99f7b0b624c45dae2c36 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 50;
-            Padding = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 50,
+                Padding = 50,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -56,7 +56,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index ce73e4820ad7aede062c7a789d1ec40732487998..8ecb2f156198072ece0333309a9ef7d458c8fd85 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 50;
-            Padding = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
-                WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 50,
+                Padding = 50,
             };
-            Add(background);
+            AbsoluteLayout.SetLayoutBounds(absoluteLayout, new UIRect(0, 0, 1, 1));
+            AbsoluteLayout.SetLayoutFlags(absoluteLayout, AbsoluteLayoutFlags.All);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 Margin = 50,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -58,7 +58,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 323fb96eb509b3d4ba4796b8f67266c4cec150c3..6486b9aaa6ebaf02d97c8c42900527262333a582 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 50,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -55,7 +55,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 6e0e3e5b94c1a24e518f5ffac0041f2cab002036..88eb9703d793cad60c7ecf39c676a1ab1612fa6b 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 50;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 50,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 Margin = 50,
             };
             AbsoluteLayout.SetLayoutBounds(origin, new UIRect(0, 0, 50, 50));
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -57,7 +57,7 @@ namespace NUILayout
             };
             AbsoluteLayout.SetLayoutBounds(view, new UIRect(0, 0.5f, 1.0f, 0.5f));
             AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 340507e30d4b785b4808d251c74c24a577ab8eff..1e6b66d46f797ec5e0957306718d9cd2a3271742 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 85cf486164b18c4342cfe38aa06a2b17da61c03d..7753828c5aa70f6846438ad1439473f13fe4774f 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index efa791be49cb213ca12b81df1bdb1cb0d4a926bc..8ef2a9a1da18a34c5a2b0e6d5d7b66f5477ce0e7 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 03636ae1e237c8247b3fd414db8f029265b302ff..7ea966d8e010a5e8304ede23c6b1abfb337e5bab 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index ccb72cb2c0109f771c6304b397006e58b4e706dc..6d9c67e69194ec9944627c9549e2d4f0dc7989e7 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 5f008326814cc0300cd680b26bb7faf17000c9b5..11ce4f8ffda1f69e061613a6b614c21c9b3969b1 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -49,7 +49,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 7b5090afd4f8075e9ba6b37adb63244528eb3bc7..95f4cd5d6c3a73384a31c420de431deb44de37ee 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 251c4e45271367d44668bb84d652e3b849a08a5a..10fb82e3676fffa0c0e879fdaf06b0887a005baf 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 842c2f9e8eb3db700db62a0490eb8054960178da..ac7c0e8d3cae05f7611441ca714b5798c48eb188 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -49,7 +49,7 @@ namespace NUILayout
                 PivotPoint = new Position(1.0f, 1.0f),
                 ParentOrigin = new Position(1.0f, 1.0f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index e250a207fea94a5f7f047b491836a885df04bfd2..d1ec33b780052b777e97c606a0624337c047fa17 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -50,7 +50,7 @@ namespace NUILayout
                 PivotPoint = new Position(1.0f, 1.0f),
                 ParentOrigin = new Position(1.0f, 1.0f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 70e32cc710519b88a08b6f92483bd5f58486529e..544cafe1a29d1e2fc4d55ab4f21ef47a591633c9 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -51,7 +51,7 @@ namespace NUILayout
                 ParentOrigin = new Position(1.0f, 1.0f),
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 2629f2be8be53d2d98e95712d59cd53354e12080..8cc411af4cea8751bf2b05f927c9dda065921696 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -49,7 +49,7 @@ namespace NUILayout
                 PivotPoint = new Position(0.5f, 0.5f),
                 ParentOrigin = new Position(0.5f, 0.5f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 5c68202c41f8289800115ce5cd536edd9bade246..7aab96a6286f09eefaed72ef808a2d884c30e64b 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -50,7 +50,7 @@ namespace NUILayout
                 PivotPoint = new Position(0.5f, 0.5f),
                 ParentOrigin = new Position(0.5f, 0.5f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index e9b3c6214edd57b94645535ace3021ca8aaeed03..f08abf8e02566024909db448a6305ea139ba8318 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -51,7 +51,7 @@ namespace NUILayout
                 ParentOrigin = new Position(0.5f, 0.5f),
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 2d768b3da9f52a3f9eb2ebc82fb3a35f9741f675..b06c4a71e42a551d4cacf04bffcb3cf40b210ad7 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -49,7 +49,7 @@ namespace NUILayout
                 PivotPoint = new Position(0.0f, 0.0f),
                 ParentOrigin = new Position(0.0f, 0.0f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 4c03b5668c83d8ef1592ea4097ee66cba2a8952a..b9d62319208b30c3df9aad7e014311f0b15ce8fb 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -50,7 +50,7 @@ namespace NUILayout
                 PivotPoint = new Position(0.0f, 0.0f),
                 ParentOrigin = new Position(0.0f, 0.0f),
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 54dd4ad71382a57effb63240092af2c1608fc965..81bd2140d23f5db741e5fd57456b2a7be5dcdd24 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var view = new View()
             {
@@ -51,7 +51,7 @@ namespace NUILayout
                 ParentOrigin = new Position(0.0f, 0.0f),
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 041e104667f7196b9f11d7497feff31f870506f1..6578ea98c16fb1bbddf1c7a5be5c4f3cba901b6e 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -46,7 +46,7 @@ namespace NUILayout
                 HeightSpecification = 100,
                 BackgroundColor = Color.LightBlue,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -56,7 +56,7 @@ namespace NUILayout
                 Position = new Position(100, 100),
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 88c08810e6f74b6d78c8014a008811b4045eb44c..2a2757c817bb0a48ecbb1fb9bb21764a1aeb24ac 100644 (file)
@@ -30,14 +30,14 @@ namespace NUILayout
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
                 Margin = 100,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -58,7 +58,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index f3c528e8d16a4de0d90501b2feeeb20240a01f08..f446b38f3e3384f28db903dfcb28df5ae2c53010 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 HeightSpecification = 100,
                 BackgroundColor = Color.LightBlue,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -57,7 +57,7 @@ namespace NUILayout
                 Position = new Position(100, 100),
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 786cbd91e7dcc17f2f3f1206f81a1bbbe0ffa525..79fc813d8bed9d5194acbecc86a706f846abe490 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
                 Margin = 100,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -59,7 +59,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 84ccd9eb8828ebc3294b018d73112f568d81fdd2..30654330fdadf2dde8d18e63c5ccc5f497d66ff1 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 HeightSpecification = 100,
                 BackgroundColor = Color.LightBlue,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -58,7 +58,7 @@ namespace NUILayout
                 Position = new Position(100, 100),
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 1b01ad65bfaef36ced87910ed915007432202aeb..c011a4eceed5162e2ecfa3e907b72a9804c281a9 100644 (file)
@@ -29,17 +29,17 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
-            Margin = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Margin = 100,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -49,7 +49,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
                 Margin = 100,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -60,7 +60,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index aba3b06e721d5f781f4b5a66b22b8970e547ae31..7f1e0e9eb9aa4ac0d6df39091128c956e18298c2 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -47,7 +47,7 @@ namespace NUILayout
                 HeightSpecification = 100,
                 BackgroundColor = Color.LightBlue,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -57,7 +57,7 @@ namespace NUILayout
                 Position = new Position(100, 100),
                 BackgroundColor = Color.Blue,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>
index 74dd6c1ada7ec22bfec4789e13efe9db50b741a9..e740377d4d4e16114a204213c9878761dd4d5a4a 100644 (file)
@@ -29,16 +29,16 @@ namespace NUILayout
             WidthSpecification = LayoutParamPolicies.MatchParent;
             HeightSpecification = LayoutParamPolicies.MatchParent;
             BackgroundColor = Color.Gray;
-            Padding = 100;
 
-            var background = new View()
+            var absoluteLayout = new View()
             {
                 Layout = new AbsoluteLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
                 BackgroundColor = Color.DarkGray,
+                Padding = 100,
             };
-            Add(background);
+            Add(absoluteLayout);
 
             var origin = new View()
             {
@@ -48,7 +48,7 @@ namespace NUILayout
                 BackgroundColor = Color.LightBlue,
                 Margin = 100,
             };
-            Add(origin);
+            absoluteLayout.Add(origin);
 
             var view = new View()
             {
@@ -59,7 +59,7 @@ namespace NUILayout
                 BackgroundColor = Color.Blue,
                 Margin = 100,
             };
-            Add(view);
+            absoluteLayout.Add(view);
 
             var timer = new Tizen.NUI.Timer(1000);
             timer.Tick += (o, e) =>