android学习——res/values/contentDescription报错
2016-03-24 18:24
267 查看
首先遇到这个报错后LZ各种查各种改,用了好长时间愣是没解决,后来沉下心来自信看了看报错信息找到/linlif/res/values/styles.xml中的<item name="android:contentDescription"></item>,修改后才好。
LZ在ImageView里添加了contentDescription
<ImageView
android:id="@+id/toast_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@drawable/toast_pwd" />
然后又胡乱跳转到了styles.xml中的<item name="android:contentDescription"></item>,然后写了一个内容,才会出现这种错误。
因为当时没有记录下具体报错信息,不知道会不会有人明白我写的是什么意思。
LZ在ImageView里添加了contentDescription
<ImageView
android:id="@+id/toast_iv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@drawable/toast_pwd" />
然后又胡乱跳转到了styles.xml中的<item name="android:contentDescription"></item>,然后写了一个内容,才会出现这种错误。
因为当时没有记录下具体报错信息,不知道会不会有人明白我写的是什么意思。
相关文章推荐
- juery中循环遍历json数组
- UIKeyboardTypeNumberPad 数字键盘自定义按键
- 来段代码提提神-Java读取config.properties文件中的key=value
- requirejs模块化框架用法分享
- request.getparam()与request.getAttibute()的区别
- 获取 当前显示的 UIViewController
- 在Android studio中进行单元测试和ui测试
- WM_CLOSE、WM_DESTROY、WM_QUIT学习总结(点击关闭按钮会触发WM_CLOSE消息,DestroyWindow API会触发WM_DESTROY和WM_NCDESTROY消息,MSDN上写的很清楚)
- hierarchy viewer不能获取userbuild手机版本的UI布局
- UIAutomator遇到的坑
- 聊聊并发(六)ConcurrentLinkedQueue的实现原理分析
- 直接用request.setAttribute()会报错,在这之前应该先让request获取ServletActionContext.getRequest();方法 // request.getAttribute同理
- ueditor的核心代码
- 在Java中连接字符串时是使用+号还是使用StringBuilder StringBuffer 加号
- Android分享笔记(6) Android 自定义UI模板
- HDU 1005 Number Sequence(基础矩阵快速幂)
- 取消事件传播 兼容ie和所有浏览器 preventDefault returnValue stopPropagation cancelBubble addEventListener attachEvent
- 安卓 ScrollView实现UI组件的上下滚动
- openstack 使用cloud init 和 console-log, nbd或者libguestfs 获取VM中的硬件信息。
- Hibernate error: Field 'firmwareId' doesn't have a default value