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.
CVPR 2020 论文大盘点-光流篇
2.
Photoshop教程_ps中怎么载入图案?PS图案如何导入?
3.
org.pentaho.di.core.exception.KettleDatabaseException:Error occurred while trying to connect to the
4.
SonarQube Scanner execution execution Error --- Failed to upload report - 500: An error has occurred
5.
idea 导入源码包
6.
python学习 day2——基础学习
7.
3D将是页游市场新赛道?
8.
osg--交互
9.
OSG-交互
10.
Idea、spring boot 图片(pgn显示、jpg不显示)解决方案
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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
>>更多相关文章<<