[NUI] Update AccessibilitySample for readability (#2500)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Thu, 7 Jan 2021 04:33:49 +0000 (13:33 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Mon, 11 Jan 2021 05:49:43 +0000 (14:49 +0900)
- Updated the sample to fit the size and make it easier to read.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AccessibilityManagerSample.cs

index 2be51ab..d319436 100755 (executable)
@@ -23,11 +23,13 @@ namespace Tizen.NUI.Samples
         const int mColumn = 3;
         const int mContents = mRow * mColumn;
 
+        Size2D windowSize;
+
         public void Activate()
         {
             Window window = NUIApplication.GetDefaultWindow();
             window.BackgroundColor = Color.White;
-            Size2D windowSize = window.WindowSize;
+            windowSize = window.Size;
 
             // Create Table
             TableView table = new TableView(mRow, mColumn)
@@ -50,7 +52,7 @@ namespace Tizen.NUI.Samples
                 {
                     TextLabel content = CreateText();
                     content.Name = "TextLabel" + exampleCount;
-                    content.Text = "Row" + row + " - Column" + column;
+                    content.Text = "R" + row + " - C" + column;
 
                     ///////////////////////////////////////////////////////////////////////////////////////////////
                     ///                 How to set Accessibility attribute to components                        ///
@@ -84,13 +86,9 @@ namespace Tizen.NUI.Samples
         TextLabel CreateText()
         {
             TextLabel label = new TextLabel();
-            label.PositionUsesPivotPoint = true;
-            label.PivotPoint = PivotPoint.Center;
-            label.ParentOrigin = ParentOrigin.Center;
             label.MultiLine = true;
             label.HorizontalAlignment = HorizontalAlignment.Center;
             label.VerticalAlignment = VerticalAlignment.Center;
-            label.HeightResizePolicy = ResizePolicyType.FillToParent;
             label.Focusable = true;
             return label;
         }