Share via


AbsListView.IOnScrollListener.OnScroll Method

Definition

Callback method to be invoked when the list or grid has been scrolled.

[Android.Runtime.Register("onScroll", "(Landroid/widget/AbsListView;III)V", "GetOnScroll_Landroid_widget_AbsListView_IIIHandler:Android.Widget.AbsListView/IOnScrollListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnScroll (Android.Widget.AbsListView? view, int firstVisibleItem, int visibleItemCount, int totalItemCount);
[<Android.Runtime.Register("onScroll", "(Landroid/widget/AbsListView;III)V", "GetOnScroll_Landroid_widget_AbsListView_IIIHandler:Android.Widget.AbsListView/IOnScrollListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnScroll : Android.Widget.AbsListView * int * int * int -> unit

Parameters

view
AbsListView

The view whose scroll state is being reported

firstVisibleItem
Int32

the index of the first visible cell (ignore if visibleItemCount == 0)

visibleItemCount
Int32

the number of visible cells

totalItemCount
Int32

the number of items in the list adapter

Attributes

Remarks

Callback method to be invoked when the list or grid has been scrolled. This will be called after the scroll has completed

Java documentation for android.widget.AbsListView.OnScrollListener.onScroll(android.widget.AbsListView, 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