diff --git a/src/XamEffects.Droid/TouchEffectPlatform.cs b/src/XamEffects.Droid/TouchEffectPlatform.cs index 494aa45..862cf1e 100644 --- a/src/XamEffects.Droid/TouchEffectPlatform.cs +++ b/src/XamEffects.Droid/TouchEffectPlatform.cs @@ -47,6 +47,15 @@ protected override void OnAttached() { Clickable = false, Focusable = false, }; + + bool? isInAccessibleTree = (bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty); + if (isInAccessibleTree.HasValue && isInAccessibleTree.Value) + { + _viewOverlay.Focusable = isInAccessibleTree ?? Control.Focusable; + _viewOverlay.ImportantForAccessibility = !isInAccessibleTree.HasValue ? Control.ImportantForAccessibility : (bool)isInAccessibleTree ? ImportantForAccessibility.Yes : ImportantForAccessibility.No; + _viewOverlay.ContentDescription = (string)Element.GetValue(AutomationProperties.NameProperty); + } + Container.LayoutChange += ViewOnLayoutChange; if (EnableRipple)