Share via


View.IOnScrollChangeListener.OnScrollChange Method

Definition

Called when the scroll position of a view changes.

[Android.Runtime.Register("onScrollChange", "(Landroid/view/View;IIII)V", "GetOnScrollChange_Landroid_view_View_IIIIHandler:Android.Views.View/IOnScrollChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public void OnScrollChange (Android.Views.View? v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);
[<Android.Runtime.Register("onScrollChange", "(Landroid/view/View;IIII)V", "GetOnScrollChange_Landroid_view_View_IIIIHandler:Android.Views.View/IOnScrollChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnScrollChange : Android.Views.View * int * int * int * int -> unit

Parameters

v
View

The view whose scroll position has changed.

scrollX
Int32

Current horizontal scroll origin.

scrollY
Int32

Current vertical scroll origin.

oldScrollX
Int32

Previous horizontal scroll origin.

oldScrollY
Int32

Previous vertical scroll origin.

Attributes

Remarks

Called when the scroll position of a view changes.

Java documentation for android.view.View.OnScrollChangeListener.onScrollChange(android.view.View, int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to