Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

WearableListView.OnCentralPositionChangedListener

public static interface WearableListView.OnCentralPositionChangedListener

android.support.wearable.view.WearableListView.OnCentralPositionChangedListener


A listener interface that can be added to the WearableListView to get notified when the central item is changed.

Summary

Public methods

abstract void onCentralPositionChanged(int centralPosition)

Called when the central item of the WearableListView changes.

Public methods

onCentralPositionChanged

void onCentralPositionChanged (int centralPosition)

Called when the central item of the WearableListView changes.

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