Closed SebaPaciorek closed 3 years ago
Ok so if I understand it correctly, the image of the item changes after you have done a drag and drop?
Can you add som logs in the bind method of the adapter and log which image you are setting on the different items. For some reason the images changes after a drag and I don't know why. Need logging to get more information on why.
You could also just set a breakpoint and check what image that is set in the different items after a drag.
Closing as no response
I created custom card view layout with ShapeableImageView that looks very simple:
https://pastebin.com/FdUjqPAC
When I start to drag item everything is OK because I get every text in clicked item and paste in drag item (copy&paste from your sample) BUT But ShapeableImageView crash this. ShapeableImageView shows on other card view where it should not. I tested long time with some changes and I can say that is no problem with custom implementation of onBindDragView because it includes only clicked and drag item and this problem is with another cards.
I linked a video, you can take a look.
https://drive.google.com/file/d/118UxcQOo8uPnUmavkXbb4BAQhfZ3Eeg_/view?usp=sharing