WindowManagerLayoutParams.LayoutInDisplayCutoutModeDefault 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.
視窗可延伸至區域 DisplayCutout 內,前提是該 DisplayCutout 區域完全被系統條包圍,或 DisplayCutout 深度不超過16 dp,但這取決於原廠選擇。
[Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.", true)]
public const Android.Views.LayoutInDisplayCutoutMode LayoutInDisplayCutoutModeDefault = 0;
[<Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.", true)>]
val mutable LayoutInDisplayCutoutModeDefault : Android.Views.LayoutInDisplayCutoutMode
欄位值
Value = 0實作
- 屬性
備註
視窗可延伸至區域 DisplayCutout 內,前提是該 DisplayCutout 區域完全被系統條包圍,或 DisplayCutout 深度不超過16 dp,但這取決於原廠選擇。 否則,窗戶的佈局會避免與 DisplayCutout 區域重疊。
實務上,這表示如果視窗沒有固定或#FLAG_FULLSCREENView#SYSTEM_UI_FLAG_FULLSCREEN,且切口位於頂部邊緣,窗戶可以延伸到直向的切口區域。 螢幕底部的切口也是 View#SYSTEM_UI_FLAG_HIDE_NAVIGATION 一樣。 否則(例如全螢幕或橫向)則會設計成不會重疊剪裁區域。
避免與狀態列及導覽列重疊的慣例措施足以確保重要內容不會與 DisplayCutout 重疊。
注意:原廠可以選擇讓視窗在與系統條不同側時,無論開DisplayCutout口旗標設為何,視窗都會延伸到該DisplayCutout區域,且重DisplayCutout疊最多 16dp 時。 此時,OEM 必須為使用者提供選擇加入/退出的選項。
Java 文件 android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。