转载自http://blog.csdn.net/hn307165411/article/details/7179317
今天使用了下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.
分享到:
相关推荐
通过AccessibilityService实现系统按键监听,可实现抢红包插件等.
Accessibility的使用和操作详细的实现,实现抖音事件捕捉。
Accessibility isn’t a mysterious or esoteric subject, but it is nuanced. And HTML5 is a gamechanger. Ultimately, creating accessible content is really a quality design issue. (Good design enables; ...
Pro HTML5 Accessibility
通过分析Auto.js来学习AccessibilityService,当然了这里的思路并不一定是Auto.js作者的,但是我们能实现相关方法了解AccessibilityService就可以了。
Approachable Accessibility,Planning for Success,2019
Android,自动点击,Accessibility,无需root即可实现自动点击
实现是通过AccessibilityService,国内部分厂商的rom可能不生效,本人测试的手机努比亚可以!
第三方apk监听系统按键事件
15个安卓AccessibilityServices项目demo
利用无障碍服务(AccessibilityService)批量清理后台进程_Java_下载.zip
通过AccessibilityService实现对系统按键的监听功能
该资源包含了一个使用accessibility实现的android静默安装,喜欢的下载。
名称:Accessibility Insights for Web -------------------- 版本:2.40.0 作者:Accessibility Insights 分类:开发者工具 -------------------- 概述:Accessibility Insights for Web 可帮助开发人员快速查找和...
Microsoft Active Accessibility我就不说了,这是它的官方文档,E文。这方面的资料比较难找,还有篇比较好的论文,http://msdn.microsoft.com/zh-cn/library/cc301312.aspx。友情提醒:IAccessible接口的定义是不...
Clearly divided into eleven distinct chapters, the book begins with a fast-start introduction to image processing to enhance the accessibility of later topics. Subsequent chapters offer increasingly ...
1. 在Chrome里面打开想要审查的网页 2. 在开发工具中选择Lighthouse面板,勾选 3. 根据实际情况在Device下选择Mobile或者Desk
Android2.2 API中文文档——AccessibilityService.doc
Android2.2 API 中文文档,注意这里只有AccessibilityService控件的,请关注http://over140.cnblogs.com/的更新。
AccessibilityService批量清理后台进程