欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

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.