Resolved this warning by setting attribute android:contentDescription for my ImageView
android:contentDescription="@string/desc"
Android 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.
原文链接:http://stackoverflow.com/questions/8500544/android-lint-contentdescription-warning
http://blog.youkuaiyun.com/hn307165411/article/details/7179317
本文解决使用ADT16.0时遇到的关于ImageView缺少contentDescription属性导致的警告问题,解释了Android Lint在新版本中引入此特性的原因,并提供了设置解决方案。
1194

被折叠的 条评论
为什么被折叠?



