語言

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

用可見的展示框填滿。 如果視圖沒有連接到視窗,這就只是原始顯示大小。

屬性

備註

取得該視窗所連接視窗所處的整體可見顯示大小。 這會考慮窗戶上方的紗窗裝飾,無論是窗戶本身被置於屏風內或窗戶被置於屏風下方,且窗戶內嵌時會使用遮蓋嵌入,讓窗戶將內容置於內。 實際上,這告訴你內容可以放置且保持對使用者可見的可用區域。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於