Home > Database > Mysql Tutorial > [Accessibility] Missing contentDescription attribute on imag

[Accessibility] Missing contentDescription attribute on imag

WBOY
Release: 2016-06-07 15:48:48
Original
1232 people have browsed it

今天使用了下ADT 16.0 在定义一个ImageVIew的时候 总是提示这个 [Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.0的新特性,在一些没有文本显示的控件里,如imageView

今天使用了下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/app_name"警告就没了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template