[NUI][ATSPI] Make DefaultLinearItem use its TextLabel
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 26 Nov 2021 05:11:58 +0000 (14:11 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 14 Dec 2021 09:04:07 +0000 (18:04 +0900)
(1) "LabelledBy" relation makes DefaultLinearItem use its TextLabel
    as accessibility name.

(2) when user does 1 finger single tap on the TextLabel, then the
    DefaultLinearItem will have highlighted by "ControlledBy" relation.

This changed could be set on application side.

src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultLinearItem.cs

index 5ee1797..84e5aa9 100755 (executable)
@@ -150,6 +150,8 @@ namespace Tizen.NUI.Components
                         layoutChanged = true;
                         Add(itemLabel);
                     }
+                    itemLabel.AppendAccessibilityRelation(this, AccessibilityRelationType.ControlledBy);
+                    this.AppendAccessibilityRelation(itemLabel, AccessibilityRelationType.LabelledBy);
                 }
                 return itemLabel;
             }