com.baoyz.swipemenulistview.SwipeMenuListView$1 cannot be cast to android.widget.BaseAdapter
来源:互联网 发布:网站seo推广优化 编辑:程序博客网 时间:2024/05/17 01:54
在项目中自定的ListView没有任何问题,在使用时的布局文件中给自定义的ListView添加一个属性fastScrollEnabled,运行程序后测试相关功能报异常:java.lang.ClassCastException: com.baoyz.swipemenulistview.SwipeMenuListView$1 cannot be cast to android.widget.BaseAdapter
解决此类问题:删除该属性即可。
示例代码如图:
异常截图:
解决代码截图:
---------- 诺诺学习技术交流博客、期待与您交流! ----------
详情请查看:http://blog.csdn.net/sun_promise
0 0
- com.baoyz.swipemenulistview.SwipeMenuListView$1 cannot be cast to android.widget.BaseAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- cannot be cast to android.widget.HeaderViewListAdapter
- android.widget.HeaderViewListAdapter cannot be cast to ***
- android.widget.Button cannot be cast to android.widget.Gallery
- widget.Button cannot be cast to android.widget.ListView
- java.lang.ClassCastException: android.widget.HeaderViewListAdapter cannot be cast to com.android.mms
- 关于Android.widget.Button cannot be cast to com.esri.android.map.MapView错误的问题
- Android 解决bug:异常提示"ListView cannot be cast to android.widget.BaseAdapter "——诺诺"涂鸦"记忆
- [android] cannot be cast to android.widget.HeaderViewListAdapter
- LinearLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
- .ClassCastException: .LinearLayout cannot be cast to android.widget.TextView
- Error: cannot be cast to android.widget.HeaderViewListAdapter
- Android 6.0 使用 Apache HttpClient
- jQuery源码分析16--jQuery的each迭代器
- HDOJ 5038 Grade (模拟)
- MySQL 字符编码
- 获取相对于窗口(window)的坐标
- com.baoyz.swipemenulistview.SwipeMenuListView$1 cannot be cast to android.widget.BaseAdapter
- CentOS6.5下安装Samba服务器
- 利用NSURLSession请求/下载文件
- iOS---上传图片时修改图片大小
- 使用gulp构建前端工程浅谈
- JMeter学习(八)JDBC测试计划-连接Oracle
- 深度剖析之 CountdownView
- docker基础概念总结
- jraiser