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.
windows下配置opencv
2.
HED神經網
3.
win 10+ annaconda+opencv
4.
ORB-SLAM3系列-多地圖管理
5.
opencv報錯——(mtype == CV_8U || mtype == CV_8S)
6.
OpenCV計算機視覺學習(9)——圖像直方圖 & 直方圖均衡化
7.
【超詳細】深度學習原理與算法第1篇---前饋神經網絡,感知機,BP神經網絡
8.
Python數據預處理
9.
ArcGIS網絡概述
10.
數據清洗(三)------檢查數據邏輯錯誤
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<