Most visited

Recently visited

NestedScrollView.OnScrollChangeListener

public static interface NestedScrollView.OnScrollChangeListener

android.support.v4.widget.NestedScrollView.OnScrollChangeListener


当视图的滚动X或Y位置改变时调用回调的接口定义。

该版本的界面适用于所有版本的Android,回到API v4。

也可以看看:

Summary

Public methods

abstract void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY)

当视图的滚动位置改变时调用。

Public methods

onScrollChange

void onScrollChange (NestedScrollView v, 
                int scrollX, 
                int scrollY, 
                int oldScrollX, 
                int oldScrollY)

当视图的滚动位置改变时调用。

Parameters
v NestedScrollView: The view whose scroll position has changed.
scrollX int: Current horizontal scroll origin.
scrollY int: Current vertical scroll origin.
oldScrollX int: Previous horizontal scroll origin.
oldScrollY int: Previous vertical scroll origin.

Hooray!