ITeye博客

Missing contentDescription attribute on imag

530247683 · 2012-05-17 20:00 · Android · 移动开发 · Markdown

Missing contentDescription attribute on imag

 

在main.xml中增加ImageView控件时如果没有加android:contentDescription="@string/app_name"时会引起Missing contentDescription attribute on image ,主要是因为在main.xml中没有使用TextView之类的文本控件,ADT会提示给像ImageView增加一个说明,这里添加android:contentDescription="@string/app_name即可,其实加不加影响不大。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。