[Accessibility] Missing contentDescription attribute on image .
来源:互联网 发布:spss数据缺失值处理 编辑:程序博客网 时间:2024/04/29 04:20
今天使用了下ADT 16.0 在定义一个ImageVIew的时候 总是提示这个[Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.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.
- [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
- iphone定位 基本知识
- 【COCOS2DX-LUA 脚本开发之四】使用tolua++编译pkg,从而创建自定义类让Lua脚本使用
- 实现一个定制的3DListview——第二部分
- android webview 输入法软键盘遮挡输入框实现(界面自动上滑并可滑动)
- openvpn 服务端配置
- [Accessibility] Missing contentDescription attribute on image .
- View Controller 容器
- MAC中jdk的目录
- 杭电OJ 1060 :Leftmost Digit
- POJ 2299 Ultra-QuickSort
- 2014年3月10日TP-LINK春季校园招聘一面前端开发
- Runloop 理解
- android使用webview
- Linux C一站式学习习题答案11.5.1