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 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於