共用方式為


Notification.Color 屬性

定義

輔色 (ARGB 整數,例如 中的 android.graphics.Color常數),可在顯示此通知時由標準 Style 範本套用。

[Android.Runtime.Register("color")]
public int Color { get; set; }
[<Android.Runtime.Register("color")>]
member this.Color : int with get, set

屬性值

屬性

備註

輔色 (ARGB 整數,例如 中的 android.graphics.Color常數),可在顯示此通知時由標準 Style 範本套用。

目前的範本設計會透過 #icon 重疊影像(以白色表示)重疊此色彩的字段,來建構彩色標頭影像。 Alpha元件會被忽略。

android.app.Notification.colorJava 檔。

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

適用於