Udostępnij za pośrednictwem


ScrollView.ComputeScrollDeltaToGetChildRectOnScreen(Rect) Method

Definition

Compute the amount to scroll in the Y direction in order to get a rectangle completely on the screen (or, if taller than the screen, at least the first screen size chunk of it).

[Android.Runtime.Register("computeScrollDeltaToGetChildRectOnScreen", "(Landroid/graphics/Rect;)I", "GetComputeScrollDeltaToGetChildRectOnScreen_Landroid_graphics_Rect_Handler")]
protected virtual int ComputeScrollDeltaToGetChildRectOnScreen (Android.Graphics.Rect? rect);
[<Android.Runtime.Register("computeScrollDeltaToGetChildRectOnScreen", "(Landroid/graphics/Rect;)I", "GetComputeScrollDeltaToGetChildRectOnScreen_Landroid_graphics_Rect_Handler")>]
abstract member ComputeScrollDeltaToGetChildRectOnScreen : Android.Graphics.Rect -> int
override this.ComputeScrollDeltaToGetChildRectOnScreen : Android.Graphics.Rect -> int

Parameters

rect
Rect

The rect.

Returns

The scroll delta.

Attributes

Remarks

Compute the amount to scroll in the Y direction in order to get a rectangle completely on the screen (or, if taller than the screen, at least the first screen size chunk of it).

Java documentation for android.widget.ScrollView.computeScrollDeltaToGetChildRectOnScreen(android.graphics.Rect).

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