WearableListView.OnScrollListener

public static interface WearableListView.OnScrollListener

android.support.wearable.view.WearableListView.OnScrollListener


This interface is deprecated.
for centering and snapping your list items consider using the WearableRecyclerView supported by a SnapHelper or the LinearSnapHelper. For scaling and otherwise modifying the list items based on their location on the screen consider using an WearableRecyclerView.ChildLayoutManager or the CurvedChildLayoutManager.

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

onAbsoluteScrollChange

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 int: Absolute scroll position of the content inside the WearableListView.

onCentralPositionChanged

public abstract void onCentralPositionChanged (int centralPosition)

Called when the central item of the WearableListView changes.

Parameters
centralPosition int: Position of the item in the Adapter.

onScroll

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

onScrollStateChanged

public abstract void onScrollStateChanged (int scrollState)

Called when WearableListView's scroll state changes.

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