[NUI][Non-ACR] Fix the issue of text displaying abnormal for wearable 83/257683/2
authorzhouleonlei <zhouleon.lei@samsung.com>
Thu, 29 Apr 2021 10:06:32 +0000 (18:06 +0800)
committerzhou lei <zhouleon.lei@samsung.com>
Thu, 29 Apr 2021 10:10:37 +0000 (10:10 +0000)
https://code.sec.samsung.net/jira/browse/TSDF-1532
All text of button and text of result are not displayed

Change-Id: Ie17bda90189d4f4d347ec2babad3bdb9710daf97

tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/WearableManualTestPage.cs
tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/testcase/TSNUIWatchApplication.cs

index 8f37c58..9f9a863 100755 (executable)
@@ -357,21 +357,21 @@ namespace Tizen.NUI.Wearable.Tests
         void SetCommonButtonStyle(Button btn, string text, int? left = null)
         {
             if (null == btn) return;
-            btn.Style.Text.Text = text;
-            btn.Style.Text.TextColor = Color.Green;
+            btn.Text = text;
+            btn.TextColor = Color.Green;
             if (left.HasValue) // for detail buttons
             {
-                btn.Style.Text.Position = new Position(left.Value, 0);
-                btn.Style.Text.Size = new Size(30, 30);
-                btn.Style.Text.PointSize = _pointSize;
+                btn.Position = new Position(left.Value, 0);
+                btn.Size = new Size(30, 30);
+                btn.PointSize = _pointSize;
             }
             else // for home buttons
             {
-                btn.Style.Text.PointSize = 6.0f;
+                btn.PointSize = 6.0f;
             }
-            btn.Style.Text.VerticalAlignment = VerticalAlignment.Bottom;
-            btn.Style.Text.HorizontalAlignment = HorizontalAlignment.Center;
-            btn.Style.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png";
+            btn.TextLabel.VerticalAlignment = VerticalAlignment.Bottom;
+            btn.TextLabel.HorizontalAlignment = HorizontalAlignment.Center;
+            btn.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png";
         }
 
         void InitializeFirstPage()
index 0c0a47f..b3288c4 100755 (executable)
@@ -54,13 +54,13 @@ namespace Tizen.NUI.Wearable.Tests
         private void CreateButton()
         {
             _infoButton = new Button();
-            _infoButton.Style.Text.Text = "Clicked run, Please refer test step";
-            _infoButton.Style.Text.PointSize = 5.0f;
+            _infoButton.Text = "Clicked run, Please refer test step";
+            _infoButton.PointSize = 5.0f;
             if (ManualTest.IsWearable())
             {
-                _infoButton.Style.Text.TextColor = Color.White;
-                _infoButton.Style.Text.HorizontalAlignment = HorizontalAlignment.Center;
-                _infoButton.Style.Text.VerticalAlignment = VerticalAlignment.Bottom;
+                _infoButton.TextLabel.TextColor = Color.White;
+                _infoButton.TextLabel.HorizontalAlignment = HorizontalAlignment.Center;
+                _infoButton.TextLabel.VerticalAlignment = VerticalAlignment.Bottom;
             }
             _infoButton.Size = new Size(300, 50);\r
             _testPage.ExecuteTC(_infoButton);