added in version 24.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

NestedScrollView.OnScrollChangeListener

public static interface NestedScrollView.OnScrollChangeListener

android.support.v4.widget.NestedScrollView.OnScrollChangeListener


Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.

This version of the interface works on all versions of Android, back to API v4.

Summary

Public methods

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

Called when the scroll position of a view changes.

Public methods

onScrollChange

added in version 24.1.0
void onScrollChange (NestedScrollView v, 
                int scrollX, 
                int scrollY, 
                int oldScrollX, 
                int oldScrollY)

Called when the scroll position of a view changes.

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.