Skip to content

Android TalkBack screen reader always reads CollectionView elements as clickable #21700

@FinnKr

Description

@FinnKr

Description

On Android any element in a CollectionView is read as clickable by the Android TalkBack screen reader.
This is the case even non clickable elements such as plain Labels.

Steps to Reproduce

  1. Create a CollectionView with a Label in its DataTemplate:
<CollectionView ItemsSource="{Binding Data}" SelectionMode="None">
    <CollectionView.ItemTemplate>
        <DataTemplate>
            <Label Text="{Binding IndexNr}"></Label>
        </DataTemplate>
    </CollectionView.ItemTemplate>
</CollectionView>
  1. Run the app on an android device with TalkBack enabled
  2. Navigate through the items with the screen reader

Result: "Double tap to activate" is announced on the labels of the collection view

Additional Infos:

  • Inspecting the accessibility tree of the app shows that every element of the CollectionView is wrapped in a ViewGroup with the "click" action and "clickable" property assigned to it:
    Screenshot 2024-04-08 at 13 02 42
  • On iOS the screen reader works as expected and does not read the elements as clickable

Link to public reproduction project repository

https://github.com/FinnKr/MAUICollectionViewA11yAndroidBug

Version with bug

8.0.14 SR3.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

Using a StackLayout with BindableLayout and a surrounding ScrollView can be used as a workaround. This needs more customization as a CollectionView though.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/a11yRelates to accessibilityt/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions