Udostępnij za pośrednictwem


View.GetWindowVisibleDisplayFrame(Rect) Method

Definition

Retrieve the overall visible display size in which the window this view is attached to has been positioned in.

[Android.Runtime.Register("getWindowVisibleDisplayFrame", "(Landroid/graphics/Rect;)V", "GetGetWindowVisibleDisplayFrame_Landroid_graphics_Rect_Handler")]
public virtual void GetWindowVisibleDisplayFrame (Android.Graphics.Rect? outRect);
[<Android.Runtime.Register("getWindowVisibleDisplayFrame", "(Landroid/graphics/Rect;)V", "GetGetWindowVisibleDisplayFrame_Landroid_graphics_Rect_Handler")>]
abstract member GetWindowVisibleDisplayFrame : Android.Graphics.Rect -> unit
override this.GetWindowVisibleDisplayFrame : Android.Graphics.Rect -> unit

Parameters

outRect
Rect

Filled in with the visible display frame. If the view is not attached to a window, this is simply the raw display size.

Attributes

Remarks

Retrieve the overall visible display size in which the window this view is attached to has been positioned in. This takes into account screen decorations above the window, for both cases where the window itself is being position inside of them or the window is being placed under then and covered insets are used for the window to position its content inside. In effect, this tells you the available area where content can be placed and remain visible to users.

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