Udostępnij za pośrednictwem


View.RequestRectangleOnScreen Method

Definition

Overloads

RequestRectangleOnScreen(Rect)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

RequestRectangleOnScreen(Rect, Boolean)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

RequestRectangleOnScreen(Rect)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

[Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_Handler")]
public virtual bool RequestRectangleOnScreen (Android.Graphics.Rect? rectangle);
[<Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_Handler")>]
abstract member RequestRectangleOnScreen : Android.Graphics.Rect -> bool
override this.RequestRectangleOnScreen : Android.Graphics.Rect -> bool

Parameters

rectangle
Rect

The rectangle in the View's content coordinate space

Returns

Whether any parent scrolled.

Attributes

Remarks

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

A View should call this if it maintains some notion of which part of its content is interesting. For example, a text editing view should call this when its cursor moves.

The Rectangle passed into this method should be in the View's content coordinate space. It should not be affected by which part of the View is currently visible or its scroll position.

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

RequestRectangleOnScreen(Rect, Boolean)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

[Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;Z)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZHandler")]
public virtual bool RequestRectangleOnScreen (Android.Graphics.Rect? rectangle, bool immediate);
[<Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;Z)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZHandler")>]
abstract member RequestRectangleOnScreen : Android.Graphics.Rect * bool -> bool
override this.RequestRectangleOnScreen : Android.Graphics.Rect * bool -> bool

Parameters

rectangle
Rect

The rectangle in the View's content coordinate space

immediate
Boolean

True to forbid animated scrolling, false otherwise

Returns

Whether any parent scrolled.

Attributes

Remarks

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

A View should call this if it maintains some notion of which part of its content is interesting. For example, a text editing view should call this when its cursor moves.

The Rectangle passed into this method should be in the View's content coordinate space. It should not be affected by which part of the View is currently visible or its scroll position.

When immediate is set to true, scrolling will not be animated.

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