语言

WindowManagerLayoutParams.LayoutInDisplayCutoutModeAlways 字段

定义

注意

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_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

字段值

Value = 3

实现

特性

注解

始终允许窗口扩展到 DisplayCutout 屏幕所有边缘的区域。

窗口必须确保没有重要内容与 <a0/a0> 重叠。

在此模式下,无论窗口是否隐藏系统栏,窗口都会在纵向和横向显示的所有边缘的剪切下扩展。

注意:Android 可能不允许内容视图在视图级别重叠系统栏。 若要重写此行为并允许内容扩展到剪切区域,请使用 < a0/&a0> 进行调用。

Java文档android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于