From 77cac6c59346f487f74e35516f7cdb7abda2d9dc Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Fri, 26 Nov 2021 14:11:58 +0900 Subject: [PATCH] [NUI][ATSPI] Make DefaultLinearItem use its TextLabel (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. --- .../Controls/RecyclerView/Item/DefaultLinearItem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultLinearItem.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultLinearItem.cs index 5ee1797..84e5aa9 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultLinearItem.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultLinearItem.cs @@ -150,6 +150,8 @@ namespace Tizen.NUI.Components layoutChanged = true; Add(itemLabel); } + itemLabel.AppendAccessibilityRelation(this, AccessibilityRelationType.ControlledBy); + this.AppendAccessibilityRelation(itemLabel, AccessibilityRelationType.LabelledBy); } return itemLabel; } -- 2.7.4