Description: Talkback does not behave as expected on the navigation drawer - it is including separators between menu item groups in the count of items in the list of items in the navigation drawer. Additionally, the header view automatically adds 1 to the count of items, even if it has no focusable items or if it has more than 1 focusable items.
Expected behavior:
I would expect talkback to announce the total number of focusable elements in the navigation drawer, regardless of whether they are menu items or children of the header view(s) (and I suppose footer views as well). I would not expect any automatically inserted separators between menu item groups to be counted.
Source code:
Minimal sample which adds a navigation drawer with 2 groups and a header containing 3 items is attached. The app will announce 7 items instead of 8 items. Additionally, if android:focusable="true" is removed from the items in menu_header.xml, then the entire header view is focusable.
Android API version: 29, suspect it affects all API levels
Material Library version: 1.0.0
Device: Pixel 2
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
So we looked into this on 1.0.0-beta02 and we no longer announce any item counts. I'm updating the issue to reflect this.
Version 1.0.0: Incorrect numbers
Version 1.1.0-beta02: No number
Most helpful comment
So we looked into this on 1.0.0-beta02 and we no longer announce any item counts. I'm updating the issue to reflect this.
Version 1.0.0: Incorrect numbers
Version 1.1.0-beta02: No number