Language

Control.StatelessBuilder.SetCustomColor(ColorStateList) Method

Definition

Optional color to be shown with the Control.

[Android.Runtime.Register("setCustomColor", "(Landroid/content/res/ColorStateList;)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatelessBuilder SetCustomColor(Android.Content.Res.ColorStateList? customColor);
[<Android.Runtime.Register("setCustomColor", "(Landroid/content/res/ColorStateList;)Landroid/service/controls/Control$StatelessBuilder;", "", ApiSince=30)>]
member this.SetCustomColor : Android.Content.Res.ColorStateList -> Android.Service.Controls.Control.StatelessBuilder

Parameters

customColor
ColorStateList

background color to use. This value may be null.

Returns

this This value cannot be null.

Attributes

Remarks

Optional color to be shown with the Control. It is highly recommended to let the system default the color unless the default is not suitable for the application.

Android reference for android.service.controls.Control.StatelessBuilder.setCustomColor.

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