[Accessibility] Missing contentDescription attribute on image
来源:互联网 发布:欧特克软件下载 编辑:程序博客网 时间:2024/06/08 11:05
使用Eclipse定义一个ImageVIew的时候 总是提示这个[Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.0(我使用的是ADT20.0)的新特性,在一些没有文本显示的控件里,如imageView和imageButton等,ADT会提示你定义一个android:contentDescription属性,用来描述这个控件的作用。英文原文如下:
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.
1 0
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image 解决
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image .
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image!!!
- [Accessibility] Missing contentDescription attribute on image
- [Accessibility] Missing contentDescription attribute on image
- 通过数据库链导出遇到ORA-39126错误
- 将逗号分割的clob字段转化为varchar,并将字符串拆分为多行
- iframe直接调用第三方网站的天气预报
- 测试你的液晶显示器是8bit还是6bit (附测试图)(更新为GIF动画测试)
- 插入法排序
- [Accessibility] Missing contentDescription attribute on image
- spring配置文件xsi:schemaLocation无法解析导致启动失败的解决方案
- C语言条件编译及编译预处理阶段(__LINE__)
- Unity中碰撞体和触发器的区别
- 第八周项目一-实现复数类的运算符重载(3)
- js中判断字符串是否相等,使用 == 或===
- 12个小球一个天平
- 详细解析Java中抽象类和接口的区别
- 正确使用STL-MAP中Erase函数