You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: