What is the purpose of the contentDescription?

3

In my application I have a Warning as below:

  

[Accessibility] Missing contentDescription attribute on image

Image

I'vebeenresearchingandfoundthatthisisthe Accessibility but can not understand. What is the purpose of contentDescription ? And because it appears as warning ?

    
asked by anonymous 03.10.2016 / 18:03

1 answer

3

contentDescription is used for accessibility , for example with the Talkback , if the user has any visual issues. This label can be used to describe the element. In case warning is to make your application even more accessible.

If an element is static, do not change, you can enter a description. This description will be "read" for the user who has vision problems. It may be that it has little vision, can see the element on the screen but can not distinguish, if there is such a description, Talkback will read (using audio) for the user who will be able to understand what is being displayed. >

Non-textual widgets as ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of widget in such a way that screen readers and other accessibility tools can adequately describe the user interface.

    
03.10.2016 / 18:14