'During drag/reorder, use itemTouchhelper to shrink or resize all items in the Recyclerview (Vertical)

I have a vertical recyclerview that uses the ItemTouchHelper callback to allow dragging and reordering of items. When an item is moved, I want to shrink all of the items' widths and heights so they all appear smaller on screen, making it easier to reorder the items.

So, instead of just the current item, I'd like to resize all items in the recyclerview. What is the best way to approach this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source