【Android】 使用ADT16出现ImageView Warning:Missing content Description attribute on image
来源:互联网 发布:网络考勤机连接手机 编辑:程序博客网 时间:2024/05/18 09:37
转载自http://stackoverflow.com/questions/8500544/android-lint-contentdescription-warning
在使用ADT 16开发android程序时会发现在XML文件中定义ImageView总是会提示Warning:Missing content Description attribute on image的警告
我们可以使用添加android:contentDescription="@string/desc"的方式来解决这个问题,
具体解释参考下面的描述:
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.
- 【Android】 使用ADT16出现ImageView Warning:Missing content Description attribute on image
- 去除android ImageView “[Accessibility] Missing contentDescription attribute on image” warning
- android学习问题记录(Missing content Description attribute on image)
- ImageView出现警告[Accessibility]Missing contentDescription attribute on image
- Android:ImageView引起Missing contentDescription attribute on image 的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- [Android]使用ImageView引起Missing contentDescription attribute on image的问题
- Android使用ImageView引起Missing contentDescription attribute on image的问题
- 关于xml中使用ImageView或ImageButton引起Missing contentDescription attribute on image 的问题
- 关于main.xml中使用ImageView引起Missing contentDescription attribute on image 的问题
- 关于main.xml中使用ImageView引起Missing contentDescription attribute on image 的问题
- 关于xml中使用ImageView或ImageButton引起Missing contentDescription attribute on image 的问题
- ImageView引起Missing contentDescription attribute on image的问题
- ImageView提示:[Accessibility] Missing contentDescription attribute on image
- ImageView出现警告[Accessibility]Missing contentDescription attribute on imag
- 钟楼商圈
- 20个Linux防火墙应用技巧
- 注重实效的程序员(The Pragmatic Programmer)
- J2ME手机开发之内存优化攻略
- Junit 入门
- 【Android】 使用ADT16出现ImageView Warning:Missing content Description attribute on image
- 玩转pandaboard之rootfs制作及启动
- 什么是重要的事情?
- linux启动流程导读(arm为例)<一>
- POJ 1528 Perfection(我的水题之路——因子之和)
- SQL Server IDENTITY用法
- c++ 对关键段CRITICAL_SECTION的封装
- 浅析 Java Thread.join()
- Sql Server identity VS uniqueidentifier