--2kua
Last Updated: February 25, 2016
·
4.278K
· javipacheco
A34cd2eb871371b5539bc489f7d086b9

Use contentDescription in ImageView for accesibility

Like ALT in Websites, in Android you can use contentDescription attribute in your ImageViews. This property is used primarily for accessibility.

You can add attribute to XML layout thus:

android:contentDescription="@string/description"

From API 16 "Android Lint" launches warnings for don't use contentDescription attribute

Say Thanks
Respond