Last Updated: February 25, 2016
·
10.11K
· 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

  NODES
Community 1
iOS 2
Javascript 2
os 6
web 1