Clone
1
Android Accessibility
Torsten Grote edited this page 2022-06-23 14:18:26 +00:00

When making new Android UI, please keep accessibility in mind.

Upstream Documentation

Simple tips

Make sure images have a contentDescription.

If the image is only decorative, use android:importantForAccessibility="no" instead of tools:ignore="contentDescription".

Setting android:screenReaderFocusable attribute to true in the root view of list item makes the screenreader read all non-focusable items inside. Note this is only available on API level 27. Using android:focusable might have the same effect (needs checking!).

Otherwise, items that are not focusable (or are not screenReaderFocusable) are in most cases invisible to screenreaders and thus visibly impaired users as well.