How to keep one item is not able to drag & drop?
congdanh1608 opened this issue · comments
Trần Công Danh commented
I implement this library to show the grid item with drag & drop feature. I want to disable that feature for the latest item.
Do you know any way to handle it?
Thank you.
Julio Ernesto Rodríguez Cabañas commented
This is in the documentation, please take a look at the method canBeDragged(...)
of the adapter. You can override it and implement it as you wish.
I hope that helps.
Trần Công Danh commented
Hi @ernestoyaquello
Thanks for your help. I already tried.
I find the canBeDroppedOver and canBeDroppedOver methods. These methods was solved my issue.
Thank you.