public
static
interface
WearableListView.OnScrollListener
| android.support.wearable.view.WearableListView.OnScrollListener |
Interface for listening to WearableListView content scrolling.
Public methods | |
|---|---|
abstract
void
|
onAbsoluteScrollChange(int scroll)
This method is deprecated. BE ADVISED DO NOT USE THIS This might provide wrong values when contents of a RecyclerView change. |
abstract
void
|
onCentralPositionChanged(int centralPosition)
Called when the central item of the WearableListView changes. |
abstract
void
|
onScroll(int scroll)
Called when the content is scrolled, reporting the relative scroll value. |
abstract
void
|
onScrollStateChanged(int scrollState)
Called when WearableListView's scroll state changes. |
void onAbsoluteScrollChange (int scroll)
This method is deprecated.
BE ADVISED DO NOT USE THIS This might provide wrong values when contents
of a RecyclerView change.
Called when the content is scrolled, reporting the absolute scroll value.
| Parameters | |
|---|---|
scroll |
int:
Absolute scroll position of the content inside the WearableListView.
|
void onCentralPositionChanged (int centralPosition)
Called when the central item of the WearableListView changes.
| Parameters | |
|---|---|
centralPosition |
int:
Position of the item in the Adapter.
|
void onScroll (int scroll)
Called when the content is scrolled, reporting the relative scroll value.
| Parameters | |
|---|---|
scroll |
int:
Amount the content was scrolled. This is a delta from the previous
position to the new position.
|
void onScrollStateChanged (int scrollState)
Called when WearableListView's scroll state changes.
| Parameters | |
|---|---|
scrollState |
int:
The updated scroll state. One of SCROLL_STATE_IDLE,
SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING.
|