ImageView Name
ImageView
elements must provide a name.
Supported within:
Impact
People that use TalkBack will be the most impacted by issues found. If an ImageView
provides information to users with vision and doesn't provide a name, TalkBack will not announce anything, and that information is missing for user experiences with TalkBack.
Informative images should utilize contentDescription
to provide any necessary context and details through TalkBack.
Confirmation
- Turn on TalkBack
- Perform a "touch to explore" gesture on the control
- For informative images:
- Accessible: Receives focus and announces a meaningful description.
For decorative images:
- Accessible: Does not receive focus individually. Within a group is accepted.
How to Fix
ImageView image = .......; // Role: Image
image.setContentDescription("Tasty Chocolates"); // Name: Tasty Chocolates.