Android 11 开发者预览版现已推出;快来测试并分享您的反馈吧

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.