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.