java.lang.Object | ||
↳ | android.support.v7.util.SortedList.Callback<T2> | |
↳ | android.support.v7.widget.util.SortedListAdapterCallback<T2> |
A SortedList.Callback
implementation that can bind a SortedList
to a
RecyclerView.Adapter
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
SortedList.Callback that will forward data change events to the provided
Adapter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called by the SortedList when the item at the given position is updated.
| |||||||||||
Called by the SortedList when an item is inserted at the given position.
| |||||||||||
Called by the SortedList when an item changes its position in the list.
| |||||||||||
Called by the SortedList when an item is removed from the given position.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v7.util.SortedList.Callback
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.util.Comparator
|
Creates a SortedList.Callback
that will forward data change events to the provided
Adapter.
adapter | The Adapter instance which should receive events from the SortedList. |
---|
Called by the SortedList when the item at the given position is updated.
position | The position of the item which has been updated. |
---|---|
count | The number of items which has changed. |
Called by the SortedList when an item is inserted at the given position.
position | The position of the new item. |
---|---|
count | The number of items that have been added. |
Called by the SortedList when an item changes its position in the list.
fromPosition | The previous position of the item before the move. |
---|---|
toPosition | The new position of the item. |
Called by the SortedList when an item is removed from the given position.
position | The position of the item which has been removed. |
---|---|
count | The number of items which have been removed. |