Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Accessibility: Missing labels on Home Screen ("Collection is empty") and other fixes

Open AnaFerreira015 opened this issue 10 months ago • 6 comments

Hi! I’m Ana Ferreira, a Master's student in Computer Science.

As part of my research on mobile accessibility, I am analyzing open-source Android applications to help identify and correct accessibility barriers so users can utilize assistive technologies (like TalkBack) more effectively.

I’ve been exploring AnkiDroid and found a specific issue on the main screen, so I wanted to propose a fix.

1. The Issue

On the Home Screen (Empty Collection state), the Add Deck FAB presents the following behavior:

  • Current behavior: The element lacks a descriptive text label. TalkBack announces it simply as "Unlabelled" (or reads the icon name without context), violating WCAG 4.1.2 (Name, Role, Value).
  • Impact: Users relying on screen readers cannot distinguish this control or understand its function immediately.

2. Proposed Solution

To fix this, I suggest adding an android:contentDescription to the element in the XML layout.

Code snippet / XML suggestion:

<ImageButton
    ...
    android:contentDescription="@string/action_description" />

(Note: We should use an existing string resource or create a new one to support localization)

3. Additional fixes (Need your input)

I have identified 3 other categories of accessibility improvements for the AnkiDroid Home Screen.

To avoid spamming your notification feed, how would you prefer I submit these?

  • [ ] Option A: List them all here in this issue (I can update the comment below).
  • [ ] Option B: Open separate issues for each specific problem.

I can provide detailed fixes for these upon request.

Please let me know your preference, and I will proceed accordingly.

Best regards,

AnaFerreira015 avatar Jan 15 '26 03:01 AnaFerreira015

This issue should come under #7913 if i'm not wrong, I would wait for a reviewer to let you know whether you can open more issues or update this one. Great find, thank you!

ShaanNarendran avatar Jan 15 '26 09:01 ShaanNarendran

Hi @AnaFerreira015 👋 !

@ShaanNarendran is correct this would fall under #7913 - more than anything, what we need are PRs that fix things vs issues though. Most of the issues have obvious fixes and I'd love to merge them, we just don't have anyone generating PRs right now

If you opened a PR for this first one we could review and see how to (hopefully quickly) fix these sorts of things in AnkiDroid - that is, how to reference the localized strings etc etc - and once there's a pattern going we can hopefully make AnkiDroid a lot more accessible very quickly

mikehardy avatar Jan 15 '26 10:01 mikehardy

Hi 👋

I tested the Add Deck FAB on the Home Screen (empty collection state) with TalkBack enabled on Android 13.

Current behavior:

TalkBack announces: “Button. Detected text +. Double tap to activate. Labels available.”

Double tapping does not activate the FAB.

Other buttons activate normally.

When TalkBack is disabled, the FAB works correctly and shows the 4 options menu.

Since PR #20120 (contentDescription fix) was closed and not merged, the label issue still appears to exist. It’s possible the activation problem is related to the missing contentDescription.

I’d be happy to work on fixing this properly following the project’s guidelines. Please let me know if that would be appropriate.

Mahakbajpai avatar Feb 28 '26 10:02 Mahakbajpai

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar May 29 '26 11:05 github-actions[bot]

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Aug 27 '26 15:08 github-actions[bot]

Fixed in:

  • b13209ee38
  • 323a90c38f

david-allison avatar Sep 30 '26 18:09 david-allison