Sdílet prostřednictvím


WindowManagerLayoutParams.LayoutInDisplayCutoutModeNever 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 never allowed to overlap with the DisplayCutout area.

[Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER", 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 LayoutInDisplayCutoutModeNever = 2;
[<Android.Runtime.Register("LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER", 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 LayoutInDisplayCutoutModeNever : Android.Views.LayoutInDisplayCutoutMode

Field Value

Value = 2

Implements

Attributes

Remarks

The window is never allowed to overlap with the DisplayCutout area.

This should be used with windows that transiently set View#SYSTEM_UI_FLAG_FULLSCREEN or View#SYSTEM_UI_FLAG_HIDE_NAVIGATION to avoid a relayout of the window when the respective flag is set or cleared.

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

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