Window.SetDecorFitsSystemWindows(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定裝飾視圖是否應適用於根層級的內容視圖。WindowInsets
[Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)]
public virtual void SetDecorFitsSystemWindows(bool decorFitsSystemWindows);
[<Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)>]
abstract member SetDecorFitsSystemWindows : bool -> unit
override this.SetDecorFitsSystemWindows : bool -> unit
參數
- decorFitsSystemWindows
- Boolean
裝飾視圖是否應該適用於 Insets 的根級內容視圖。
- 屬性
備註
設定裝飾視圖是否應適用於根層級的內容視圖。WindowInsets
若設定為 true,框架會檢查已棄用View#SYSTEM_UI_LAYOUT_FLAGSWindowManager.LayoutParams#SOFT_INPUT_ADJUST_RESIZE的旗標,並依照這些旗標擬合內容。
如果設定為 false,框架將無法將內容檢視對應到內嵌,而是直接通過內容 WindowInsets 檢視。
如果應用程式的目標值或 android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM VANILLA_ICE_CREAM 更高,行為就會像設定為 false,且無法更改。
此會員已被棄用。 在容器視圖中留出空間,避免關鍵元素被遮蔽WindowInsets.Type#systemBars()WindowInsets.Type#displayCutout()或取代。
Java 文件 android.view.Window.setDecorFitsSystemWindows(boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。