现在的位置: 首页 > 综合 > 正文

Missing contentDescription attribute on image

2017年01月08日 ⁄ 综合 ⁄ 共 283字 ⁄ 字号 评论关闭


这是ADT 16.0的新特性,在一些没有文本显示的控件里,如imageView和imageButton等,ADT会提示你定义一个android:contentDescription属性,用来描述这个控件的作用。


加上这个属性即可:

android:contentDescription="@string/app_name"


原文链接:http://stackoverflow.com/questions/8500544/android-lint-contentdescription-warning



但是: 我的项目中一直就没有写过这个属性。。


有182项需要改偶?这。。。。。。

抱歉!评论已关闭.