问题描述
一个为Android SDK插件在Eclipse的最新更新推出了很多新的警告你的布局和这样的。其中之一是,如果你没有在 Android的出现辅助功能警告:contentDescription
标记集。这导致我的项目之一警告的数百的,这自然使得很多困难,我发现其他更多的是的警告。
One of the latest updates for the Android SDK plugin in Eclipse introduced a lot of new warnings for your layouts and such. One of these is an accessibility warning that appears if you don't have the android:contentDescription
tag set. This resulted in hundreds of warnings in one of my projects, and that naturally makes it a lot harder for me to find other more important warnings.
纵观official文档,似乎这个标签是pretty的从最终用户的角度来说毫无用处。下面是它的介绍:
Looking at the official documentation, it seems that this tag is pretty useless from an end-user's perspective. Here's the description of it:
定义文字简要介绍了视图的内容。此属性主要用于辅助功能。由于某些观点不具备文字重presentation这个属性可以用来提供这样的。
因此,基本上,我的问题是什么是标签的目的?它似乎只服用注意力从真正的错误/警告,我实在不明白怎么能说是一个辅助警告,如果它不影响用户的使用。
So basically, my question is what's the purpose of that tag? It only seems to be taking focus away from the "real" errors / warnings, and I don't really see how it can be an accessibility warning if it doesn't affect the user.
推荐答案
对于一些残疾人士的标签几乎类似于HTML的ALT的标签,因此它是有用的最终用户。有效地将允许文字说明是psented到用户$ P $他们可能没有什么能够清楚地看到用/交互。
For some disabled people that tag almost similar to the "alt" tag in HTML, therefore it IS useful to the end user. Effectively it will allow a textual description to be presented to the user of what they may not be able to see clearly/interact with.
在Android文档:
定义文字简要介绍了视图的内容。这个性质 主要用于辅助功能。由于一些意见没有 文本重新presentation这个属性可以用来提供这样的。
编辑:冰淇淋三明治辅助功能本文http://www.ubergizmo.com/2011/11/android-ice-cream-sandwich-accessibility/
Ice Cream Sandwich accessibility features are described in this article http://www.ubergizmo.com/2011/11/android-ice-cream-sandwich-accessibility/
有这样谷歌文章中提及,作为Android 4.0的亮点部分http://developer.android.com/sdk/android-4.0-highlights.html#UserFeatures
There is a mention in this Google article as part of Android 4.0 highlights http://developer.android.com/sdk/android-4.0-highlights.html#UserFeatures
这篇关于什么是Android的contentDescription标签的真正目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!