android - RecyclerView删除数据项后执行下拉刷新报空指针
PHP中文网
PHP中文网 2017-04-17 17:26:50
0
2
663
在RecyclerView中删除一行后下拉刷新,会报空指针错误。
![图片描述][1]
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
洪涛

If you only delete the option but do not remove the data in the list, an error will occur when loading again. There may be many situations, but the conditions you gave are too few

PHPzhong

Check to see if after deleting a row, you did not destroy the total data of the data source or see if there is any problem with the function callnotifyDataSetChanged

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template