public interface RecyclerRangeTraverser
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RecyclerRangeTraverser.Processor |
| Modifier and Type | Field and Description |
|---|---|
static RecyclerRangeTraverser |
BACKWARD_TRAVERSER |
static RecyclerRangeTraverser |
BIDIRECTIONAL_TRAVERSER
A more optimized range traverser that expands from the center for the visible range so that
items adjacent to the visible ones are traversed first.
|
static RecyclerRangeTraverser |
FORWARD_TRAVERSER |
| Modifier and Type | Method and Description |
|---|---|
void |
traverse(int rangeStart,
int rangeEnd,
int firstVisible,
int lastVisible,
RecyclerRangeTraverser.Processor processor)
Traverse the given range.
|
static final RecyclerRangeTraverser FORWARD_TRAVERSER
static final RecyclerRangeTraverser BACKWARD_TRAVERSER
static final RecyclerRangeTraverser BIDIRECTIONAL_TRAVERSER
void traverse(int rangeStart,
int rangeEnd,
int firstVisible,
int lastVisible,
RecyclerRangeTraverser.Processor processor)
rangeStart - Start of the range, inclusiverangeEnd - End of the range, exclusivefirstVisible - Index of the first visible itemlastVisible - Index of the last visible itemhandler - Handler that will perform job for each index in the range and determines if we
need to stop