WindowManagerLayoutParams.LayoutInDisplayCutoutModeShortEdges 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.
視窗總是允許延伸到 DisplayCutout 螢幕短邊的區域。
[Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES", 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 LayoutInDisplayCutoutModeShortEdges = 1;
[<Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES", 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 LayoutInDisplayCutoutModeShortEdges : Android.Views.LayoutInDisplayCutoutMode
欄位值
Value = 1實作
- 屬性
備註
視窗總是允許延伸到 DisplayCutout 螢幕短邊的區域。
視窗永遠不會延伸到螢幕長邊的某個 DisplayCutout 區域,除非深度 DisplayCutout 不超過 16 dp,但這取決於原廠選擇。
注意:原廠可以選擇讓窗戶延伸到 DisplayCutout 長邊區域,前提是開口與窗戶重疊最多 16dp。 此時,OEM 必須為使用者提供選擇加入/退出的選項。
視窗必須確保沒有重要內容與 重疊。DisplayCutout
在此模式下,視窗會延伸至螢幕短邊的切口下方,無論直向或橫向,無論視窗是否隱藏系統 bars:<br/><img src=“https://developer.android.com/reference/android/images/display_cutout/short_edge/fullscreen_top_no_letterbox.png” height=“720” alt=“直向中顯示上端有切口的全螢幕活動截圖,未套用信箱。/>
<img src=“https://developer.android.com/reference/android/images/display_cutout/short_edge/landscape_top_no_letterbox.png ” width=“720” alt=“顯示螢幕上橫向有切口的活動截圖,沒有套用信箱。」/>
角落的切口可視為不同裝置旋轉時位於不同邊緣。 這種行為可能因裝置而異。 如果顯示切口在角落,使用這個旗幟可以讓你的應用程式出現信箱黑邊。
另一方面,若切口位於顯示器長邊,則會套用信箱,使視窗不會延伸至任一長邊的切口: <br/><img src=“https://developer.android.com/reference/android/images/display_cutout/short_edge/portrait_side_letterbox.png” height=“720” alt=“直向中長邊有切口的活動截圖, 信箱已套用。」/>
注意:Android m<br/>ight 不允許內容檢視與系統列重疊於視圖層級。 要覆蓋此行為並允許內容延伸至剪裁區域,請呼叫 Window#setDecorFitsSystemWindows(boolean)false。
Java 文件 android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。