notifyItemMoved

fun notifyItemMoved(fromPosition: Int, toPosition: Int)(source)

Notify any registered observers that the item reflected at fromPosition has been moved to toPosition.

This is a structural change event. Representations of other existing items in the data set are still considered up to date and will not be rebound, though their positions may be altered.

Parameters

fromPosition

Previous position of the item.

toPosition

New position of the item.