Udostępnij za pośrednictwem


Notification.Color Property

Definition

Accent color (an ARGB integer like the constants in android.graphics.Color) to be applied by the standard Style templates when presenting this notification.

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

Property Value

Attributes

Remarks

Accent color (an ARGB integer like the constants in android.graphics.Color) to be applied by the standard Style templates when presenting this notification.

The current template design constructs a colorful header image by overlaying the #icon image (stenciled in white) atop a field of this color. Alpha components are ignored.

Java documentation for android.app.Notification.color.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to