使用ADT 16.0或者以上版本时,用户定义一个ImageView,会提示[Accessibility] Missing
contentDescription attribute on image,虽说这个警告可以忽略不计,但总让人感觉不舒服。
其实,这是ADT 16.0的新特性,在一些没有文本显示的控件里,如imageView和imageButton等,ADT会提示你添加一个android:contentDescription属性,用来描述这个控件的作用。(而且值引用strings.xml文件中的,否则又会有提示。)
英文原文如下
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.
分享到:
相关推荐
Android2.2 API中文文档——AccessibilityService.doc
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; ...
Android2.2 API 中文文档,注意这里只有AccessibilityService控件的,请关注http://over140.cnblogs.com/的更新。
Accessibility的使用和操作详细的实现,实现抖音事件捕捉。
通过AccessibilityService实现系统按键监听,可实现抢红包插件等.
通过分析Auto.js来学习AccessibilityService,当然了这里的思路并不一定是Auto.js作者的,但是我们能实现相关方法了解AccessibilityService就可以了。
Approachable Accessibility,Planning for Success,2019
Pro HTML5 Accessibility
Android,自动点击,Accessibility,无需root即可实现自动点击
1. 在Chrome里面打开想要审查的网页 2. 在开发工具中选择Lighthouse面板,勾选 3. 根据实际情况在Device下选择Mobile或者Desk
实现是通过AccessibilityService,国内部分厂商的rom可能不生效,本人测试的手机努比亚可以!
第三方apk监听系统按键事件
15个安卓AccessibilityServices项目demo
利用无障碍服务(AccessibilityService)批量清理后台进程_Java_下载.zip
该资源包含了一个使用accessibility实现的android静默安装,喜欢的下载。
Microsoft Active Accessibility我就不说了,这是它的官方文档,E文。这方面的资料比较难找,还有篇比较好的论文,http://msdn.microsoft.com/zh-cn/library/cc301312.aspx。友情提醒:IAccessible接口的定义是不...
通过AccessibilityService实现对系统按键的监听功能
Basic4Android最新最全类库,包含B4a上市后截止到2017.04.24的库文件。希望对大家有帮助。以下为文件列表。 2012/08/09 周四 01:55 35,901 ABExtDrawing.jar 2012/08/09 周四 01:55 191,079 ABExtDrawing.xml 2010/...
名称:Accessibility Insights for Web -------------------- 版本:2.40.0 作者:Accessibility Insights 分类:开发者工具 -------------------- 概述:Accessibility Insights for Web 可帮助开发人员快速查找和...
AccessibilityService批量清理后台进程