首页 > 解决方案 > Recyclerview 行在设置数据时消失

问题描述

我有一个应用程序,它显示加载的所有事务。然后我有一些芯片,点击添加过滤条件并过滤交易(将新的过滤列表设置到适配器)。在初始加载时,所有交易看起来都很好,但在第一次点击任何芯片时,所有记录都消失了。当我再次点击芯片并再次设置数据时,记录重新出现。我想知道这种奇怪行为背后的原因

在日志猫中,我有以下提到的错误。

2021-07-21 01:21:17.134 20177-20177/com.bkt.bum/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{2869f30 VFE...CL. ......I. 540,5152-1080,5518 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=29, currentItem=models.InventoryDTO@20, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{2869f30 VFE...CL. ......I. 540,5152-1080,5518 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=29, currentItem=models.InventoryDTO@20, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.134 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{9658473 VFE...CL. ......I. 0,5152-540,5518 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=28, currentItem=models.InventoryDTO@1f, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{9658473 VFE...CL. ......I. 0,5152-540,5518 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=28, currentItem=models.InventoryDTO@1f, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.135 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{2a44093 VFE...CL. ......I. 540,4786-1080,5152 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=27, currentItem=models.InventoryDTO@25, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{2a44093 VFE...CL. ......I. 540,4786-1080,5152 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=27, currentItem=models.InventoryDTO@25, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.135 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{6a1e7a0 VFE...CL. ......I. 0,4786-540,5152 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=26, currentItem=models.InventoryDTO@24, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{6a1e7a0 VFE...CL. ......I. 0,4786-540,5152 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=26, currentItem=models.InventoryDTO@24, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.135 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{c97e8a3 VFE...CL. ......I. 540,4420-1080,4786 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=25, currentItem=models.InventoryDTO@26, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{c97e8a3 VFE...CL. ......I. 540,4420-1080,4786 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=25, currentItem=models.InventoryDTO@26, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.136 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{8763c10 VFE...CL. ......I. 0,4420-540,4786 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=24, currentItem=models.InventoryDTO@2c, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{8763c10 VFE...CL. ......I. 0,4420-540,4786 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=24, currentItem=models.InventoryDTO@2c, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.136 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{3d008d3 VFE...CL. ......I. 540,4054-1080,4420 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=23, currentItem=models.InventoryDTO@2b, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{3d008d3 VFE...CL. ......I. 540,4054-1080,4420 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=23, currentItem=models.InventoryDTO@2b, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.136 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{a625b0 VFE...CL. ......I. 0,4054-540,4420 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=22, currentItem=models.InventoryDTO@30, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{a625b0 VFE...CL. ......I. 0,4054-540,4420 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=22, currentItem=models.InventoryDTO@30, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.136 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{1a58e20 VFE...CL. ......I. 540,3688-1080,4054 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=21, currentItem=models.InventoryDTO@35, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{1a58e20 VFE...CL. ......I. 540,3688-1080,4054 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=21, currentItem=models.InventoryDTO@35, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.136 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{202bd43 VFE...CL. ......I. 0,3688-540,4054 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=20, currentItem=models.InventoryDTO@3c, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{202bd43 VFE...CL. ......I. 0,3688-540,4054 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=20, currentItem=models.InventoryDTO@3c, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.137 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{c5f8160 VFE...CL. ......I. 540,3322-1080,3688 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=19, currentItem=models.InventoryDTO@3e, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{c5f8160 VFE...CL. ......I. 540,3322-1080,3688 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=19, currentItem=models.InventoryDTO@3e, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.137 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{df0ac30 VFE...CL. ......I. 0,3322-540,3688 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=18, currentItem=models.InventoryDTO@40, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{df0ac30 VFE...CL. ......I. 0,3322-540,3688 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=18, currentItem=models.InventoryDTO@40, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.137 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{eee05d0 VFE...CL. ......I. 540,2956-1080,3322 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=17, currentItem=models.InventoryDTO@44, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{eee05d0 VFE...CL. ......I. 540,2956-1080,3322 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=17, currentItem=models.InventoryDTO@44, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.137 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{305e193 VFE...CL. ......I. 0,2956-540,3322 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=16, currentItem=models.InventoryDTO@47, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{305e193 VFE...CL. ......I. 0,2956-540,3322 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=16, currentItem=models.InventoryDTO@47, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.137 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{9e09640 VFE...CL. ......I. 540,2590-1080,2956 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=15, currentItem=models.InventoryDTO@49, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{9e09640 VFE...CL. ......I. 540,2590-1080,2956 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=15, currentItem=models.InventoryDTO@49, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.138 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{3fadc3 VFE...CL. ......I. 0,2590-540,2956 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=14, currentItem=models.InventoryDTO@48, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{3fadc3 VFE...CL. ......I. 0,2590-540,2956 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=14, currentItem=models.InventoryDTO@48, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.138 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{c6381e3 VFE...CL. ......I. 540,2224-1080,2590 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=13, currentItem=models.InventoryDTO@50, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{c6381e3 VFE...CL. ......I. 540,2224-1080,2590 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=13, currentItem=models.InventoryDTO@50, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.138 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{46632b0 VFE...CL. ......I. 0,2224-540,2590 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=12, currentItem=models.InventoryDTO@57, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{46632b0 VFE...CL. ......I. 0,2224-540,2590 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=12, currentItem=models.InventoryDTO@57, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.138 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{384fcc0 VFE...CL. ......I. 540,1858-1080,2224 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=11, currentItem=models.InventoryDTO@5d, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{384fcc0 VFE...CL. ......I. 540,1858-1080,2224 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=11, currentItem=models.InventoryDTO@5d, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.138 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{d077a53 VFE...CL. ......I. 0,1858-540,2224 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=10, currentItem=models.InventoryDTO@60, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{d077a53 VFE...CL. ......I. 0,1858-540,2224 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=10, currentItem=models.InventoryDTO@60, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.139 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{892ce60 VFE...CL. ......I. 540,1492-1080,1858 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=9, currentItem=models.InventoryDTO@63, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{892ce60 VFE...CL. ......I. 540,1492-1080,1858 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=9, currentItem=models.InventoryDTO@63, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.139 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{b75610 VFE...CL. ......I. 0,1492-540,1858 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=8, currentItem=models.InventoryDTO@7d, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{b75610 VFE...CL. ......I. 0,1492-540,1858 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=8, currentItem=models.InventoryDTO@7d, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.139 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{9a6db23 VFE...CL. ......I. 540,1126-1080,1492 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=7, currentItem=models.InventoryDTO@96, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{9a6db23 VFE...CL. ......I. 540,1126-1080,1492 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=7, currentItem=models.InventoryDTO@96, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.139 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{c2a1b53 VFE...CL. ......I. 0,1126-540,1492 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=6, currentItem=models.InventoryDTO@c5, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{c2a1b53 VFE...CL. ......I. 0,1126-540,1492 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=6, currentItem=models.InventoryDTO@c5, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.140 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{5f41d00 VFE...CL. ......I. 540,760-1080,1126 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=5, currentItem=models.InventoryDTO@c3, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{5f41d00 VFE...CL. ......I. 540,760-1080,1126 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=5, currentItem=models.InventoryDTO@c3, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.140 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{8311fd0 VFE...CL. ......I. 0,760-540,1126 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=4, currentItem=models.InventoryDTO@c0, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{8311fd0 VFE...CL. ......I. 0,760-540,1126 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=4, currentItem=models.InventoryDTO@c0, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.140 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{7596fc3 VFE...CL. ......I. 540,394-1080,760 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=3, currentItem=models.InventoryDTO@df, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{7596fc3 VFE...CL. ......I. 540,394-1080,760 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=3, currentItem=models.InventoryDTO@df, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.140 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{1ea4cb0 VFE...CL. ......I. 0,394-540,760 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=2, currentItem=models.InventoryDTO@f3, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{1ea4cb0 VFE...CL. ......I. 0,394-540,760 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=2, currentItem=models.InventoryDTO@f3, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.140 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{a5a8803 VFE...CL. ......I. 540,28-1080,394 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=1, currentItem=models.InventoryDTO@104, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{a5a8803 VFE...CL. ......I. 540,28-1080,394 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=1, currentItem=models.InventoryDTO@104, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd
2021-07-21 01:21:17.141 20177-20177/com.bkt.bum E/RecyclerView: Problem while matching changed view holders with the newones. The pre-layout information for the change holder AdvanceHolder(view=androidx.cardview.widget.CardView{452e033 VFE...CL. ......I. 0,28-540,394 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=0, currentItem=models.InventoryDTO@10e, payloads=[])) cannot be found but it is necessary for AdvanceHolder(view=androidx.cardview.widget.CardView{452e033 VFE...CL. ......I. 0,28-540,394 #7f0801d3 app:id/root_container}, row=RowObject(currentPosition=0, currentItem=models.InventoryDTO@10e, payloads=[])) androidx.recyclerview.widget.RecyclerView{528bc53 VFED..... ......ID 0,135-1080,5653 #7f0801c5 app:id/recycler_view}, adapter:inventory.TransactionAdapter@5c8b8fa, layout:androidx.recyclerview.widget.GridLayoutManager@a2f1eab, context:com.bkt.bum.MainActivity@27acdbd

如果我尝试再次设置数据,行会返回。初始记录数相当高

标签: androidandroid-recyclerview

解决方案


推荐阅读