addOnScrollListener

Add a listener that will be notified of any changes in scroll state or position.

Components that add a listener should take care to remove it when finished. Other components that take ownership of a view may call .clearOnScrollListeners to remove all attached listeners.

Parameters

listener

listener to set or null to clear