{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum DiffingChangePayload
Payloads used to dispatch change events. Could become a public API post 3.0 in case developers want to handle it more effectively.
Sending these change payloads is critical for the common case where DefaultItemAnimator won't animate them and re-use the same view holder if possible.
Enum Values |
|
---|---|
ITEM_TO_PLACEHOLDER |
|
PLACEHOLDER_POSITION_CHANGE |
|
PLACEHOLDER_TO_ITEM |
@NonNull
@NonNull DiffingChangePayload DiffingChangePayload.ITEM_TO_PLACEHOLDER
@NonNull
@NonNull DiffingChangePayload DiffingChangePayload.PLACEHOLDER_POSITION_CHANGE
@NonNull
@NonNull DiffingChangePayload DiffingChangePayload.PLACEHOLDER_TO_ITEM