Compartilhar via


ViewGroup.OnNestedPreScroll(View, Int32, Int32, Int32[]) Method

Definition

React to a nested scroll in progress before the target view consumes a portion of the scroll.

[Android.Runtime.Register("onNestedPreScroll", "(Landroid/view/View;II[I)V", "GetOnNestedPreScroll_Landroid_view_View_IIarrayIHandler")]
public virtual void OnNestedPreScroll (Android.Views.View? target, int dx, int dy, int[]? consumed);
[<Android.Runtime.Register("onNestedPreScroll", "(Landroid/view/View;II[I)V", "GetOnNestedPreScroll_Landroid_view_View_IIarrayIHandler")>]
abstract member OnNestedPreScroll : Android.Views.View * int * int * int[] -> unit
override this.OnNestedPreScroll : Android.Views.View * int * int * int[] -> unit

Parameters

target
View

View that initiated the nested scroll

dx
Int32

Horizontal scroll distance in pixels

dy
Int32

Vertical scroll distance in pixels

consumed
Int32[]

Output. The horizontal and vertical scroll distance consumed by this parent

Implements

Attributes

Remarks

Java documentation for android.view.ViewGroup.onNestedPreScroll(android.view.View, 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