IViewParent.OnNestedScrollAccepted(View, View, ScrollAxis) Method

Definition

React to the successful claiming of a nested scroll operation.

[Android.Runtime.Register("onNestedScrollAccepted", "(Landroid/view/View;Landroid/view/View;I)V", "GetOnNestedScrollAccepted_Landroid_view_View_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnNestedScrollAccepted (Android.Views.View child, Android.Views.View target, Android.Views.ScrollAxis nestedScrollAxes);
[<Android.Runtime.Register("onNestedScrollAccepted", "(Landroid/view/View;Landroid/view/View;I)V", "GetOnNestedScrollAccepted_Landroid_view_View_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnNestedScrollAccepted : Android.Views.View * Android.Views.View * Android.Views.ScrollAxis -> unit

Parameters

child
View

Direct child of this ViewParent containing target

target
View

View that initiated the nested scroll

nestedScrollAxes
ScrollAxis

Flags consisting of View#SCROLL_AXIS_HORIZONTAL, View#SCROLL_AXIS_VERTICAL or both

Attributes

Remarks

React to the successful claiming of a nested scroll operation.

This method will be called after #onStartNestedScroll(View, View, int) onStartNestedScroll returns true. It offers an opportunity for the view and its superclasses to perform initial configuration for the nested scroll. Implementations of this method should always call their superclass's implementation of this method if one is present.

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

See also

  • <xref:Android.Views.IViewParent.OnStartNestedScroll(Android.Views.View%2c+Android.Views.View%2c+Android.Views.View)>
  • OnStopNestedScroll(View)