WindowManagerLayoutParams.LayoutInDisplayCutoutModeShortEdges フィールド

定義

注意事項

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 短い端の領域に拡張できます。

ウィンドウは、 が 16 dp より深くない限りDisplayCutout、画面の長い端の領域にDisplayCutout拡張されることはありませんが、これは OEM の選択によって異なります。

注: OEM は、カットアウトがウィンドウと最大 16dp で重なる場合にのみ、ウィンドウを長いエッジ側の領域に拡張 DisplayCutout できるようにするオプションを持つことができます。 このような場合、OEM はユーザーにオプトイン/アウト アフォーダンスを提供する必要があります。

ウィンドウでは、重要なコンテンツが と重複していないことを確認する DisplayCutout必要があります。

このモードでは、ウィンドウがシステム バーを非表示にしているかどうかに関係なく、縦と横の両方のディスプレイの短い端のカットアウトの下にウィンドウが拡張されます。<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/fullscreen_corner_no_letterbox.png" height="720" alt="縦の隅に切り抜きがあるディスプレイ上の全画面表示アクティビティのスクリーンショット。レターボックスは適用されません。/>

一方、カットアウトがディスプレイの長い端にある場合は、ウィンドウが長い端のカットアウトに拡張されないようにレターボックスが適用されます。 <br/><img src="https://developer.android.com/reference/android/images/display_cutout/short_edge/portrait_side_letterbox.png" height="720" alt="縦の長い端にカットアウトがあるディスプレイ上のアクティビティのスクリーンショット。 letterbox が適用されます。/>

注: Android では、コンテンツ ビューがビュー レベルのシステム バーと重なることを許可しない場合があります。 この動作をオーバーライドし、コンテンツをカットアウト領域に拡張できるようにするには、 を使用して falseを呼び出しますWindow#setDecorFitsSystemWindows(boolean)

android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGESJava ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象