Window.SetDecorFitsSystemWindows(Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置装饰视图是否应适合根级内容视图 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。
如果设置为
如果设置为
如果应用面向 android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM VANILLA_ICE_CREAM 或更高版本,则行为将类似于将其设置为 false,并且无法更改。
此成员已弃用。 在容器视图中设置空间,以防止关键元素被 WindowInsets.Type#systemBars() 或 WindowInsets.Type#displayCutout() 改为被遮盖。
Java文档android.view.Window.setDecorFitsSystemWindows(boolean)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。