Items disappear when using recyclerview with ItemTouchHelper for drag & drop using FlexboxLayoutManager
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
override fun onMove(recyclerView: RecyclerView, fromVH: RecyclerView.ViewHolder, toVH: RecyclerView.ViewHolder){
// swapping words in shuffled array
Collections.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
Any news about this?
FlexboxLayoutManager notifyItemMoved(startIndex, endIndex) Item disappears Any news about this?
There is no reply to this question?
@muzammilhussnain14 Do you have some solution for this bug?