語言

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)

Java 文件 android.view.WindowInsetsController.setSystemBarsAppearance(int, int)。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於