好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Missing contentDescription attribute on image

 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

标签:android

查看更多关于Missing contentDescription attribute on image的详细内容...

  阅读:25次