View.GetWindowVisibleDisplayFrame(Rect) 方法

定义

检索此视图所附加到的窗口所在的整体可见显示大小。

[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

参数

outRect
Rect

用可见的显示框填充。 如果视图未附加到窗口,则这只是原始显示大小。

属性

注解

检索此视图所附加到的窗口所在的整体可见显示大小。 这考虑了窗口上方的屏幕装饰,这两种情况包括窗口本身位于窗口内部,或者窗口放置在窗口下方,并且覆盖的嵌入用于窗口将内容置于其中。 实际上,这会告诉你可在其中放置内容并保持对用户可见的可用区域。

android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)Java 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

适用于