Missing contentDescription attribute on image
2016-03-17 21:25
204 查看
android开发中在配置文件中使用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中会显示一个黄色下划线,不美观。
contentDescription attribute on image. 主要是因为在main.xml中没有使用TextView之类的文本控件,ADT会提示给像ImageView增加一个说明,这里添加android:contentDescription="@string/app_name即可,其实加不加影响不大。只是在IDE中会显示一个黄色下划线,不美观。
相关文章推荐
- PB实现数据窗口动态分组
- JAVA反射总结
- js字符串大小写转换
- IOS生成证书
- 与电容有关的几点解惑
- 安卓开发遇到的问题1--2016.3.17
- AIDL原理分析与使用
- Android学习之数字选择器NumberPicker之修改字色字号分割线颜色
- java空字符串“”和null区别
- FZU 1064 教授的测试
- FZU 1397 保送
- 条件变量--pthread_cond_t(小程序)
- Android常用的颜色代码值
- jquery 多标签添加 活动标签 促销标签
- PB动态SQL
- iOS 多线程 各种锁
- 所学新知——int、char型转string 类型等
- wicket基础应用(3)——wicket控件的隐藏和显示
- KVM原理与架构系列之二 基本原理篇
- 9中UML图