JavaShuo
栏目
标签
刷新Adapter报java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
时间 2021-01-08
标签
android
栏目
Java
繁體版
原文
原文链接
今天在做EditText文本监控TextWatcher时,刷新Adapter,系统崩溃,报如下异常,再此记录下修改的方法 如上图所示, 错误翻译:RecyclerView正在计算布局或滚动应用程序时,无法调用此方法 报错原因为:在一个ViewHolder.onBind()里面用通过bus发消息去通知刷新列表notifyDataSetChanged(),这个时候刚好列表在滚动,那么就会报这个错。 解
>>阅读原文<<
相关文章
1.
解Caused by java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
2.
Android之提示Cannot call this method while RecyclerView is computing a layout or scrolling
3.
java.lang.IllegalStateException: You cannot call onTextChanged with a non filterable adapter
4.
[AVAssetWriter startWriting] Cannot call method when status is 1
5.
java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method
6.
There is already 'projectApproveController' bean method java.lang.IllegalStateException: Ambiguous
7.
listView adapter 的java.lang.IllegalStateException
8.
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
9.
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
10.
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'XXX' bean method
更多相关文章...
•
ionic 下拉刷新
-
ionic 教程
•
PHP Closure::call()
-
PHP 7 新特性
•
PHP Ajax 跨域问题最佳解决方案
•
☆基于Java Instrument的Agent实现
相关标签/搜索
this+call
computing
java.lang.illegalstateexception
adapter
method
刷新
recyclerview
动态刷新
core'&&cannot
Java
Android
PHP 7 新特性
NoSQL教程
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Duang!超快Wi-Fi来袭
2.
机器学习-补充03 神经网络之**函数(Activation Function)
3.
git上开源maven项目部署 多module maven项目(多module maven+redis+tomcat+mysql)后台部署流程学习记录
4.
ecliple-tomcat部署maven项目方式之一
5.
eclipse新导入的项目经常可以看到“XX cannot be resolved to a type”的报错信息
6.
Spark RDD的依赖于DAG的工作原理
7.
VMware安装CentOS-8教程详解
8.
YDOOK:Java 项目 Spring 项目导入基本四大 jar 包 导入依赖,怎样在 IDEA 的项目结构中导入 jar 包 导入依赖
9.
简单方法使得putty(windows10上)可以免密登录树莓派
10.
idea怎么用本地maven
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
解Caused by java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing
2.
Android之提示Cannot call this method while RecyclerView is computing a layout or scrolling
3.
java.lang.IllegalStateException: You cannot call onTextChanged with a non filterable adapter
4.
[AVAssetWriter startWriting] Cannot call method when status is 1
5.
java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'specificationController' method
6.
There is already 'projectApproveController' bean method java.lang.IllegalStateException: Ambiguous
7.
listView adapter 的java.lang.IllegalStateException
8.
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
9.
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
10.
java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'XXX' bean method
>>更多相关文章<<