Carlos Hernandez
Carlos Hernandez

Reputation: 31

Why do I get this in Eclipse, is this an error?

[Accessibility] Missing contentDescription attribute on image

Upvotes: 2

Views: 162

Answers (1)

Ollie C
Ollie C

Reputation: 28509

Because all images should have a text descriptor.

It is for accessibility, so people with visual impairment can use the app (through Google's accessibility app which reads out the names of Views in the UI)

You should add the text, though if you do not want to (incorrect in my view) you could set it to "".

http://developer.android.com/guide/topics/ui/accessibility/apps.html

Upvotes: 4

Related Questions