iPaulPro / Android-ItemTouchHelper-Demo

Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView.
Apache License 2.0
2.51k stars 499 forks source link

Dragging with different viewtypes #40

Open NirujanSuresh opened 8 years ago

NirujanSuresh commented 8 years ago

Lets say I have 10 items in my recyclerview and item 4 is a different viewtype then the rest of the items. When dragging say item 0 across the recyclerview, there is a fade in and out effect on item 4 and that's because we don't swap elements with different viewtypes. Is there a way to avoid "refreshing" the adapter when we drag across different viewtypes?