语言

Window.SetDecorFitsSystemWindows(Boolean) 方法

定义

设置装饰视图是否应适合根级内容视图 WindowInsets。

[Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)]
public virtual void SetDecorFitsSystemWindows(bool decorFitsSystemWindows);
[<Android.Runtime.Register("setDecorFitsSystemWindows", "(Z)V", "GetSetDecorFitsSystemWindows_ZHandler", ApiSince=30)>]
abstract member SetDecorFitsSystemWindows : bool -> unit
override this.SetDecorFitsSystemWindows : bool -> unit

参数

decorFitsSystemWindows
Boolean

装饰视图是否应适合内嵌的根级内容视图。

特性

注解

设置装饰视图是否应适合根级内容视图 WindowInsets。

如果设置为 /a0>,则框架将检查现已弃用 的 标志以及标志,并根据这些标志适合内容。

如果设置为 /a0>,则框架将不适合内嵌内容视图,并且将直接传递到 内容视图。

如果应用面向 android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM VANILLA_ICE_CREAM 或更高版本,则行为将类似于将其设置为 false,并且无法更改。

此成员已弃用。 在容器视图中设置空间,以防止关键元素被 WindowInsets.Type#systemBars() 或 WindowInsets.Type#displayCutout() 改为被遮盖。

Java文档android.view.Window.setDecorFitsSystemWindows(boolean)。

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

适用于