[Accessibility] Missing contentDescription attribute on image
android:contentDescription="@string/description"
新版本的的ADT建议在ImageView和ImageButton中添加属性contentDescription,这仅是一个建议,你可以忽略它,并且此警告不会导致编译错误。the new ADT version suggestion add
android:contentDescription
this attribute in imageview
, just a suggestion, i think you can ignore this, it dont make the compile errorAndroid Lint support in ADT 16 throws this warning to ensure that image widgets provide a contentDescription
This defines text that briefly describes content of the view. This property is used primarily for accessibility. Since some views do not have textual representation this attribute can be used for providing such.
Non-textual widgets like ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of the widget such that screen readers and other accessibility tools can adequately describe the user interface.
此类错误,在android开发官方网站就可以轻易查询到解决办法。