public static interface WearableListView.OnCenterProximityListener
android.support.wearable.view.WearableListView.OnCenterProximityListener |
WearableListView子级成为或不再是中心项目时接收回调的接口。
Public methods |
|
---|---|
abstract void |
onCenterPosition(boolean animate) 当此视图成为WearableListView的核心项目时调用。 |
abstract void |
onNonCenterPosition(boolean animate) 当此视图停止成为WearableListView的中心项目时调用。 |
void onCenterPosition (boolean animate)
当此视图成为WearableListView的核心项目时调用。
Parameters | |
---|---|
animate |
boolean : Whether you should animate your transition of the View to become the central item. If false, this is the initial setting and you should transition immediately. |
void onNonCenterPosition (boolean animate)
当此视图停止成为WearableListView的中心项目时调用。
Parameters | |
---|---|
animate |
boolean : Whether you should animate your transition of the View to being non central item. If false, this is the initial setting and you should transition immediately. |