次の方法で共有


WindowManagerLayoutParams.LayoutInDisplayCutoutModeAlways Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.

The window is always allowed to extend into the DisplayCutout areas on the all edges of the screen.

[Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS", ApiSince=30)]
[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 LayoutInDisplayCutoutModeAlways = 3;
[<Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.LayoutInDisplayCutoutMode enum directly instead of this field.", true)>]
val mutable LayoutInDisplayCutoutModeAlways : Android.Views.LayoutInDisplayCutoutMode

Field Value

Value = 3

Implements

Attributes

Remarks

The window is always allowed to extend into the DisplayCutout areas on the all edges of the screen.

The window must make sure that no important content overlaps with the DisplayCutout.

In this mode, the window extends under cutouts on the all edges of the display in both portrait and landscape, regardless of whether the window is hiding the system bars.

Note: Android might not allow the content view to overlap the system bars in view level. To override this behavior and allow content to be able to extend into the cutout area, call Window#setDecorFitsSystemWindows(boolean) with false.

Java documentation for android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to