Hi,
I have a StaggeredGridLayout RecyclerView with a spanCount of 3.
The last item if a footer and it's set as:
(itemView.layoutParams as StaggeredGridLayoutManager.LayoutParams).isFullSpan = true
by doing so, the method onCheckCanDrop is triggered multiple times when i move an element on it.
Let's suppose I have 5 items plus the footer, when I move the 5th (index 4) item to the footer (index 5), as shown in the screenshot, the onCheckCanDrop is called several in this way:
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
onCheckCanDrop from 4 to 4
onCheckCanDrop from 4 to 5
as you can see, the draggingPosition remains the same while the dropPosition switches between 4 and 5.
Hi, I have a StaggeredGridLayout RecyclerView with a spanCount of 3. The last item if a footer and it's set as:
(itemView.layoutParams as StaggeredGridLayoutManager.LayoutParams).isFullSpan = true
by doing so, the method onCheckCanDrop is triggered multiple times when i move an element on it.![screenshot](https://user-images.githubusercontent.com/2080111/88483906-2bb5b380-cf6b-11ea-9186-a4241880d998.PNG)
Let's suppose I have 5 items plus the footer, when I move the 5th (index 4) item to the footer (index 5), as shown in the screenshot, the onCheckCanDrop is called several in this way:
as you can see, the draggingPosition remains the same while the dropPosition switches between 4 and 5.
This is my adapter https://pastebin.com/pSSajdfz
Thank you in advance