From: dongsug.song Date: Mon, 9 Aug 2021 03:00:16 +0000 (+0900) Subject: [NUI] sync with https://github.com/nui-dali/NUITizenGallery X-Git-Tag: accepted/tizen/unified/20231205.024657~1621 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6205ebe2b69aea3c87691ffe4620d6b17357c458;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] sync with https://github.com/nui-dali/NUITizenGallery --- diff --git a/test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.cs b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTest.cs similarity index 84% rename from test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.cs rename to test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTest.cs index 95f0c3d..394f74f 100644 --- a/test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.cs +++ b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTest.cs @@ -21,24 +21,20 @@ using Tizen.NUI.Components; namespace NUITizenGallery { - internal class AbsoluteLayout : IExample + internal class AbsoluteLayoutTest : IExample { Window window; - AbsoluteLayoutPage page; public void Activate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()"); window = NUIApplication.GetDefaultWindow(); - - page = new AbsoluteLayoutPage(); - window.Add(page); + window.GetDefaultNavigator().Push(new AbsoluteLayoutTestPage()); } public void Deactivate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()"); - page.Unparent(); - page.Dispose(); + window.GetDefaultNavigator().Pop(); } } } diff --git a/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml new file mode 100644 index 0000000..70bef50 --- /dev/null +++ b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.xaml.cs b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml.cs similarity index 88% rename from test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.xaml.cs rename to test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml.cs index 1a01c17..ff22e82 100644 --- a/test/NUITizenGallery/Examples/AbsoluteLayout/AbsoluteLayout.xaml.cs +++ b/test/NUITizenGallery/Examples/AbsoluteLayoutTest/AbsoluteLayoutTestPage.xaml.cs @@ -20,9 +20,9 @@ using Tizen.NUI.Components; namespace NUITizenGallery { - public partial class AbsoluteLayoutPage : View + public partial class AbsoluteLayoutTestPage : ContentPage { - public AbsoluteLayoutPage() + public AbsoluteLayoutTestPage() { InitializeComponent(); } diff --git a/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTest.cs b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTest.cs new file mode 100644 index 0000000..be0ae8c --- /dev/null +++ b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTest.cs @@ -0,0 +1,40 @@ +/* + * Copyright(c) 2021 Samsung Electronics Co., Ltd. + * + * Licensed 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. + * + */ +using System; +using Tizen.NUI; +using Tizen.NUI.BaseComponents; +using Tizen.NUI.Components; + +namespace NUITizenGallery +{ + internal class ActivityIndicatorTest : IExample + { + Window window; + + public void Activate() + { + Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()"); + window = NUIApplication.GetDefaultWindow(); + window.GetDefaultNavigator().Push(new ActivityIndicatorTestPage()); + } + public void Deactivate() + { + Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()"); + window.GetDefaultNavigator().Pop(); + } + } +} diff --git a/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml new file mode 100644 index 0000000..42a113f --- /dev/null +++ b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + diff --git a/test/NUITizenGallery/Examples/ActivityIndicator/ActivityIndicator.xaml.cs b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml.cs similarity index 88% rename from test/NUITizenGallery/Examples/ActivityIndicator/ActivityIndicator.xaml.cs rename to test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml.cs index a07e15f..9d6c55d 100644 --- a/test/NUITizenGallery/Examples/ActivityIndicator/ActivityIndicator.xaml.cs +++ b/test/NUITizenGallery/Examples/ActivityIndicatorTest/ActivityIndicatorTestPage.xaml.cs @@ -15,12 +15,13 @@ * */ using Tizen.NUI.BaseComponents; +using Tizen.NUI.Components; namespace NUITizenGallery { - public partial class ActivityIndicatorPage : View + public partial class ActivityIndicatorTestPage : ContentPage { - public ActivityIndicatorPage() + public ActivityIndicatorTestPage() { InitializeComponent(); diff --git a/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTest.cs b/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTest.cs index 39780fd..12fec7c 100644 --- a/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTest.cs +++ b/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTest.cs @@ -24,7 +24,6 @@ namespace NUITizenGallery { Window window; Navigator navigator; - AlertDialogTestPage page; int pageCount = 0; public void Activate() @@ -35,9 +34,7 @@ namespace NUITizenGallery navigator = window.GetDefaultNavigator(); pageCount = navigator.PageCount; - - page = new AlertDialogTestPage(); - navigator.Push(page); + navigator.Push(new AlertDialogTestPage()); } public void Deactivate() diff --git a/test/NUITizenGallery/res/layout/AlertDialogTestPage.xaml b/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTestPage.xaml similarity index 74% rename from test/NUITizenGallery/res/layout/AlertDialogTestPage.xaml rename to test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTestPage.xaml index d04fe78..822b196 100644 --- a/test/NUITizenGallery/res/layout/AlertDialogTestPage.xaml +++ b/test/NUITizenGallery/Examples/AlertDialogTest/AlertDialogTestPage.xaml @@ -1,21 +1,19 @@  - + - + + - @@ -39,4 +37,4 @@ - + diff --git a/test/NUITizenGallery/Examples/AnimationTest1/AnimationTest1.cs b/test/NUITizenGallery/Examples/AnimationTest/AnimationTest1.cs similarity index 86% rename from test/NUITizenGallery/Examples/AnimationTest1/AnimationTest1.cs rename to test/NUITizenGallery/Examples/AnimationTest/AnimationTest1.cs index 5289ad7..6d43f1b 100755 --- a/test/NUITizenGallery/Examples/AnimationTest1/AnimationTest1.cs +++ b/test/NUITizenGallery/Examples/AnimationTest/AnimationTest1.cs @@ -17,27 +17,25 @@ using System; using Tizen.NUI; +using Tizen.NUI.Components; namespace NUITizenGallery { internal class AnimationTest1 : IExample { private Window window; - private AnimationTest1Page page; public void Activate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()"); window = NUIApplication.GetDefaultWindow(); - page = new AnimationTest1Page(); - window.Add(page); + window.GetDefaultNavigator().Push(new AnimationTest1Page()); } public void Deactivate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()"); - page.Unparent(); - page.Dispose(); + window.GetDefaultNavigator().Pop(); } } } \ No newline at end of file diff --git a/test/NUITizenGallery/Examples/AnimationTest/AnimationTest1Page.xaml b/test/NUITizenGallery/Examples/AnimationTest/AnimationTest1Page.xaml new file mode 100755 index 0000000..a6033ee --- /dev/null +++ b/test/NUITizenGallery/Examples/AnimationTest/AnimationTest1Page.xaml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +