Android:ImageView引起Missing contentDescription attribute on image 的问题
2015-12-30 12:17
573 查看
关于main.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引起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中会显示一个黄色下划线,不美观。
相关文章推荐
- 使用响应式编程(RxJava)开发Android App
- Android:文件读写、操作模式、SDCard
- 解析AndroidManifest.xml
- Android 知识图谱 (方便复习)
- Android:Android的单元测试、开发工具
- Android:Android布局方式
- Android:Android提醒用户的方式
- Android:intent的基础
- android-share file
- Android:短信发送器
- 教你安装配置Android Studio
- android日常开发总结的技术经验60条
- Android客户端访问服务器保持SESSION会话的实现
- android 上下左右手势判断
- android中通过HTML设置文字颜色和字号
- Android API 19 及以上版本AlarmManager setRepeating 不准或只执行一次的解决方案
- Android 去掉状态栏 去掉标题栏 沉浸式状态栏 状态栏重叠 布局重叠 SystemBarTintManager systembartint-1.0.4
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- 提高效率的 Android Studio 技巧汇总
- Android5.0关机充电动画位置