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

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