语言

IWindowInsetsController.SetSystemBarsAppearance(Int32, Int32) 方法

定义

控制系统栏的外观。

[Android.Runtime.Register("setSystemBarsAppearance", "(II)V", "GetSetSystemBarsAppearance_IIHandler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void SetSystemBarsAppearance(int appearance, int mask);
[<Android.Runtime.Register("setSystemBarsAppearance", "(II)V", "GetSetSystemBarsAppearance_IIHandler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member SetSystemBarsAppearance : int * int -> unit

参数

appearance
Int32

外观标志的位掩码。

mask
Int32

指定应更改哪些外观标志。

特性

注解

控制系统栏的外观。

例如,以下语句将添加 #APPEARANCE_LIGHT_STATUS_BARS:

setSystemBarsAppearance(APPEARANCE_LIGHT_STATUS_BARS, APPEARANCE_LIGHT_STATUS_BARS)

以下语句将清除它:

setSystemBarsAppearance(0, APPEARANCE_LIGHT_STATUS_BARS)

适用于 . 的 android.view.WindowInsetsController.setSystemBarsAppearance(int, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于