public static interface WearableListView.OnScrollListener
| android.support.wearable.view.WearableListView.OnScrollListener |
用于监听WearableListView内容滚动的界面。
Public methods |
|
|---|---|
abstract void |
onAbsoluteScrollChange(int scroll) 此方法已弃用。 建议不要使用这可能会在RecyclerView的内容发生变化时提供错误的值。 |
abstract void |
onCentralPositionChanged(int centralPosition) WearableListView的中心项目更改时调用。 |
abstract void |
onScroll(int scroll) 在内容滚动时调用,报告相对滚动值。 |
abstract void |
onScrollStateChanged(int scrollState) 当WearableListView的滚动状态改变时调用。 |
void onAbsoluteScrollChange (int scroll)
此方法已弃用。
建议不要使用这可能会在RecyclerView的内容发生变化时提供错误的值。
在内容滚动时调用,报告绝对滚动值。
| Parameters | |
|---|---|
scroll |
int: Absolute scroll position of the content inside the WearableListView. |
void onCentralPositionChanged (int centralPosition)
WearableListView的中心项目更改时调用。
| Parameters | |
|---|---|
centralPosition |
int: Position of the item in the Adapter. |
void onScroll (int scroll)
在内容滚动时调用,报告相对滚动值。
| Parameters | |
|---|---|
scroll |
int: Amount the content was scrolled. This is a delta from the previous position to the new position. |
void onScrollStateChanged (int scrollState)
当WearableListView的滚动状态改变时调用。
| Parameters | |
|---|---|
scrollState |
int: The updated scroll state. One of SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING. |