Skip to content

Most visited

Recently visited

navigation

WearableListView.OnScrollListener

public static interface WearableListView.OnScrollListener

android.support.wearable.view.WearableListView.OnScrollListener


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

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

void onCentralPositionChanged (int centralPosition)

Called when the central item of the WearableListView changes.

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

onScroll

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

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.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)