[Accessibility] Missing contentDescription attribute on image
来源:互联网 发布:淘宝网舞蹈鞋 编辑:程序博客网 时间:2024/06/09 19:48
使用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.
原文地址:http://www.cnblogs.com/flyme/archive/2012/07/04/2576015.html
- [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
- 还在朋友圈刷屏吗?微商请给我一个购买的理由
- Fragment中有几个Activity中没有的新方法,这里需要重点介绍一下
- [Leetcode]Word Search
- 自定义控件之刮刮卡
- 常量指针和指针常量
- [Accessibility] Missing contentDescription attribute on image
- how-to-configure-and-use-spark-history-server
- [LeetCode] Longest Common Prefix
- Android官方开发指南-Camera(相机)
- 怎样才能学好C语言
- 【Android开发经验】Android开发相关的Blog推荐——跟随大神的脚步才能成长为大神
- VirtualBox安装ubuntu之后,无法挂载共享文件夹
- 两个APP之间相互传值
- iBATIS, Hibernate, and JPA : Which is right for you ?