Create Android Accessibility

Torsten Grote
2022-06-23 14:18:26 +00:00
parent 0ce6dd926e
commit 20dd935012

16
Android-Accessibility.md Normal file

@@ -0,0 +1,16 @@
When making new Android UI, please keep accessibility in mind.
## Upstream Documentation
* [Principles for improving app accessibility](https://developer.android.com/guide/topics/ui/accessibility/principles)
* [Make apps more accessible](https://developer.android.com/guide/topics/ui/accessibility/apps)
## 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.