您的位置:首页 > 其它

使用ImageView引起Missing contentDescription attribute on image的问题

2013-02-20 15:55 645 查看

增加ImageView控件时会显示黄色的下划线,出现Missing contentDescription attribute on image的问题

主要是因为在没有使用TextView之类的文本控件,这里添加 android:contentDescription="@string/app_name"即可。

如:

<ImageView

android:contentDescription="@string/app_name"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@drawable/play"

android:layout_gravity="center"/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐