次の方法で共有


IViewParent.OnStartNestedScroll(View, View, ScrollAxis) Method

Definition

React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.

[Android.Runtime.Register("onStartNestedScroll", "(Landroid/view/View;Landroid/view/View;I)Z", "GetOnStartNestedScroll_Landroid_view_View_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnStartNestedScroll (Android.Views.View child, Android.Views.View target, Android.Views.ScrollAxis nestedScrollAxes);
[<Android.Runtime.Register("onStartNestedScroll", "(Landroid/view/View;Landroid/view/View;I)Z", "GetOnStartNestedScroll_Landroid_view_View_Landroid_view_View_IHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnStartNestedScroll : Android.Views.View * Android.Views.View * Android.Views.ScrollAxis -> bool

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

Returns

true if this ViewParent accepts the nested scroll operation

Attributes

Remarks

React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.

This method will be called in response to a descendant view invoking View#startNestedScroll(int). Each parent up the view hierarchy will be given an opportunity to respond and claim the nested scrolling operation by returning true.

This method may be overridden by ViewParent implementations to indicate when the view is willing to support a nested scrolling operation that is about to begin. If it returns true, this ViewParent will become the target view's nested scrolling parent for the duration of the scroll operation in progress. When the nested scroll is finished this ViewParent will receive a call to #onStopNestedScroll(View).

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