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
I am trying to implement item reordering by drag and drop in a RecyclerView using FlexboxLayoutManager .
I attach ItemTouchHelper to my RecyclerView and than on function onItemMove I do following in my RecyclerView.AdapterImplementation
overridefunonMove(recyclerView:RecyclerView, fromVH:RecyclerView.ViewHolder, toVH:RecyclerView.ViewHolder){
// swapping words in shuffled arrayCollections.swap(wordsShuffled, fromVH.adapterPosition, toVH.adapterPosition)
// calling notify item moved to update UI
notifyItemMoved(fromVH.adapterPosition, toVH.adapterPosition)
//It messes up UI after notifyItemMoved some time few items disappear and sometime comeback in random order
}
It messes up UI after notifyItemMoved some time few items disappear and sometime comeback in random order
The text was updated successfully, but these errors were encountered:
I am trying to implement item reordering by drag and drop in a
RecyclerView
usingFlexboxLayoutManager
.I attach
ItemTouchHelper
to myRecyclerView
and than on functiononItemMove
I do following in myRecyclerView.AdapterImplementation
It messes up UI after notifyItemMoved some time few items disappear and sometime comeback in random order
The text was updated successfully, but these errors were encountered: