Update Accessibility highlight frame 08/308308/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 21 Mar 2024 07:30:36 +0000 (16:30 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 21 Mar 2024 07:32:53 +0000 (16:32 +0900)
- Update Accessibility highlight frame according to the public UX guide.
- This patch can resolve `TNINE-412` issue
 : https://jira.sec.samsung.net/browse/TNINE-412

Change-Id: I4be18d89a88f4f7c9ae1c9d7e9fb27bec64a50a9
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Settings/SettingAccessibility/SettingAccessibility.cs
Settings/SettingAccessibility/res/images/highlightFrame.9.png [new file with mode: 0644]

index b73248d56938a2a7fd1fe2603e81f19076e05788..0b342fbdb2b6450e217ab869fbb7806511261d55 100755 (executable)
@@ -8,6 +8,9 @@ namespace SettingAccessibility
 {
     public class Program : NUIWidgetApplication
     {
+        private static readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
+        private static readonly string HighlightFrame = ResourcePath + "/images/highlightFrame.9.png";
+
         public Program(Dictionary<System.Type, string> widgetSet) : base(widgetSet)
         {
 
@@ -17,14 +20,13 @@ namespace SettingAccessibility
         {
             base.OnCreate();
 
-            // Update the accessibility highlight box
-            // TODO : Need to consider whether using View properties or ImageView itself. (Especially, dotted line)
-            View highlightBox = new View()\r
-            {\r
-                BackgroundColor = new Color("#FAFAFA"),\r
-                Opacity = 0.1f,\r
-                CornerRadius = 12.0f,\r
+            ImageView highlightBox = new ImageView(HighlightFrame)
+            {
+                WidthResizePolicy = ResizePolicyType.FillToParent,
+                HeightResizePolicy = ResizePolicyType.FillToParent,
+                AccessibilityHighlightable = false,
             };
+
             Accessibility.ClearCurrentlyHighlightedView();
             Accessibility.SetHighlightFrameView(highlightBox);
         }
diff --git a/Settings/SettingAccessibility/res/images/highlightFrame.9.png b/Settings/SettingAccessibility/res/images/highlightFrame.9.png
new file mode 100644 (file)
index 0000000..30483fe
Binary files /dev/null and b/Settings/SettingAccessibility/res/images/highlightFrame.9.png differ