Android开发:UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
2015-11-30 21:45
585 查看
出现这个异常,是因为你的AbsLisView(ListView,GridView等)标签间加了其他的控件,比如,下面的代码就会报这个错:
在ListView标签间加了TextView标签
<ListView android:id="@+id/mainRatePicView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/wordview_mainrate" android:layout_marginTop="@dimen/appendrate_item_mainrate_margin_top" android:listSelector="@color/transparent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" /> </ListView>
在ListView标签间加了TextView标签
相关文章推荐
- 使用nginx+nginx-rtmp-module+ffmpeg搭建流媒体服务器
- Linux部署web程序
- 从windows到LinuxSVN数据迁移小结
- openmq-1
- Shell基础
- Linux常用命令
- nginx结合pagespeed
- linux下vi命令大全
- gdb和arm-linux-gdb命令详解
- 编译GDAL支持OpenCL使用GPU加速
- 编译GDAL支持OpenCL使用GPU加速
- Hadoop2.6.0学习笔记(四)TextInputFormat及RecordReader解析
- ArcGIS Desktop安装教程
- 2016旗舰处理器架构一览
- openfire源码分析---8
- Linux系统与Windows的基本区别
- ubuntu14.04中安装opencv2.4.9
- linux date命令
- Linux简介与虚拟机安装
- SHELL