Share via


IViewParent.RequestChildRectangleOnScreen(View, Rect, Boolean) Method

Definition

Called when a child of this group wants a particular rectangle to be positioned onto the screen.

[Android.Runtime.Register("requestChildRectangleOnScreen", "(Landroid/view/View;Landroid/graphics/Rect;Z)Z", "GetRequestChildRectangleOnScreen_Landroid_view_View_Landroid_graphics_Rect_ZHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool RequestChildRectangleOnScreen (Android.Views.View child, Android.Graphics.Rect? rectangle, bool immediate);
[<Android.Runtime.Register("requestChildRectangleOnScreen", "(Landroid/view/View;Landroid/graphics/Rect;Z)Z", "GetRequestChildRectangleOnScreen_Landroid_view_View_Landroid_graphics_Rect_ZHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RequestChildRectangleOnScreen : Android.Views.View * Android.Graphics.Rect * bool -> bool

Parameters

child
View

The direct child making the request.

rectangle
Rect

The rectangle in the child's coordinates the child wishes to be on the screen.

immediate
Boolean

True to forbid animated or delayed scrolling, false otherwise

Returns

Whether the group scrolled to handle the operation

Attributes

Remarks

Called when a child of this group wants a particular rectangle to be positioned onto the screen. ViewGroups overriding this can trust that: <ul> <li>child will be a direct child of this group</li> <li>rectangle will be in the child's content coordinates</li> </ul>

ViewGroups overriding this should uphold the contract:

<ul> <li>nothing will change if the rectangle is already visible</li> <li>the view port will be scrolled only just enough to make the rectangle visible</li> <ul>

Java documentation for android.view.ViewParent.requestChildRectangleOnScreen(android.view.View, android.graphics.Rect, boolean).

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