public interface IntoTracker<ID>
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_POSITION |
| Modifier and Type | Method and Description |
|---|---|
ID |
getIdByPosition(int position) |
int |
getPositionById(ID id) |
android.view.View |
getViewById(ID id) |
static final int NO_POSITION
@Nullable ID getIdByPosition(int position)
position - List positionnull if position is invalid.
Note, that only one id per position should be possible for "To" view.int getPositionById(@NonNull
ID id)
id - Item IDNO_POSITION if element with given ID is not part of the list.@Nullable
android.view.View getViewById(@NonNull
ID id)
id - Item IDnull if view is not found.null if view is not found on the screen, list view
will be automatically scrolled to needed position (as returned by
getPositionById(Object)) and this method will be called again.