layout使用ImageView控件里关于contentDescription属性的问题
2013-08-19 15:56
417 查看
关于xml布局文件中使用ImageView引起Missing contentDescription attribute on image 的问题
在main.xml中增加ImageView控件时如果没有加android:contentDescription="@string/app_name"时会引起Missing contentDescription attribute on image ,主要是因为在main.xml中没有使用TextView之类的文本控件,ADT会提示给像ImageView增加一个说明,这里添加android:contentDescription="@string/app_name即可,其实加不加影响不大。只是在IDE中会显示一个黄色下划线,不美观。
在main.xml中增加ImageView控件时如果没有加android:contentDescription="@string/app_name"时会引起Missing contentDescription attribute on image ,主要是因为在main.xml中没有使用TextView之类的文本控件,ADT会提示给像ImageView增加一个说明,这里添加android:contentDescription="@string/app_name即可,其实加不加影响不大。只是在IDE中会显示一个黄色下划线,不美观。
相关文章推荐
- 关于main.xml中使用ImageView引起Missing contentDescription attribute on image 的问题
- 关于main.xml中使用ImageView引起Missing contentDescription attribute on image 的问题
- 关于android的imagebutton,imageview等无文本控件警告的解决办法//android:contentDescription="@string/desc"
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- [Android]使用ImageView引起Missing contentDescription attribute on image的问题
- 关于xml中使用ImageView或ImageButton引起Missing contentDescription attribute on image 的问题
- 关于xml中使用ImageView或ImageButton引起Missing contentDescription attribute on image 的问题
- Android使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 使用ImageView引起Missing contentDescription attribute on image的问题
- 关于使用struts2与jsp时,使用prototype.js的$属性与jquery的$冲突问题
- 求助关于asp.net里使用ocx控件的问题
- 转关于使用月历控件时·时间不准确问题
- 关于在项目中使用Android5.0的CoordinatorLayout,上滑无效果的问题
- layout_gravity和gravity 关于属性失效问题
- 关于点击菜单项或按钮无法弹出对话框的问题(使用了RichEdit控件)
- 关于WebValidates.dll验证控件在VS2008和VS2010中使用的问题
- 关于C#应用第三方控件dll的使用方法及常见问题
- C#写的计数器控件 - 一个关于相对路径使用的问题