public static interface

WearableListView.OnScrollListener

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

android.support.wearable.view.WearableListView.OnScrollListener

Class Overview

Interface for listening to WearableListView content scrolling.

Summary

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.

Public Methods

public 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.

Called when the content is scrolled, reporting the absolute scroll value.

Parameters
scroll Absolute scroll position of the content inside the WearableListView.

public abstract void onCentralPositionChanged (int centralPosition)

Called when the central item of the WearableListView changes.

Parameters
centralPosition Position of the item in the Adapter.

public abstract void onScroll (int scroll)

Called when the content is scrolled, reporting the relative scroll value.

Parameters
scroll Amount the content was scrolled. This is a delta from the previous position to the new position.

public abstract void onScrollStateChanged (int scrollState)

Called when WearableListView's scroll state changes.

Parameters
scrollState The updated scroll state. One of SCROLL_STATE_IDLE, SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING.