Condividi tramite


AbsListView.IOnScrollListener.OnScrollStateChanged Method

Definition

Callback method to be invoked while the list view or grid view is being scrolled.

[Android.Runtime.Register("onScrollStateChanged", "(Landroid/widget/AbsListView;I)V", "GetOnScrollStateChanged_Landroid_widget_AbsListView_IHandler:Android.Widget.AbsListView/IOnScrollListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnScrollStateChanged (Android.Widget.AbsListView? view, Android.Widget.ScrollState scrollState);
[<Android.Runtime.Register("onScrollStateChanged", "(Landroid/widget/AbsListView;I)V", "GetOnScrollStateChanged_Landroid_widget_AbsListView_IHandler:Android.Widget.AbsListView/IOnScrollListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnScrollStateChanged : Android.Widget.AbsListView * Android.Widget.ScrollState -> unit

Parameters

view
AbsListView

The view whose scroll state is being reported

scrollState
ScrollState

The current scroll state. One of #SCROLL_STATE_TOUCH_SCROLL or #SCROLL_STATE_IDLE.

Attributes

Remarks

Callback method to be invoked while the list view or grid view is being scrolled. If the view is being scrolled, this method will be called before the next frame of the scroll is rendered. In particular, it will be called before any calls to Adapter#getView(int, View, ViewGroup).

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