RemoteViews.SetColorStateList Method

Definition

Overloads

SetColorStateList(Int32, String, ColorStateList)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

SetColorStateList(Int32, String, Int32)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

SetColorStateList(Int32, String, ColorStateList, ColorStateList)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

SetColorStateList(Int32, String, ColorStateList)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;Landroid/content/res/ColorStateList;)V", "GetSetColorStateList_ILjava_lang_String_Landroid_content_res_ColorStateList_Handler", ApiSince=31)]
public virtual void SetColorStateList (int viewId, string methodName, Android.Content.Res.ColorStateList? value);
[<Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;Landroid/content/res/ColorStateList;)V", "GetSetColorStateList_ILjava_lang_String_Landroid_content_res_ColorStateList_Handler", ApiSince=31)>]
abstract member SetColorStateList : int * string * Android.Content.Res.ColorStateList -> unit
override this.SetColorStateList : int * string * Android.Content.Res.ColorStateList -> unit

Parameters

viewId
Int32

The id of the view on which to call the method.

methodName
String

The name of the method to call.

value
ColorStateList

The value to pass to the method.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setColorStateList(int, java.lang.String, android.content.res.ColorStateList).

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

SetColorStateList(Int32, String, Int32)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;I)V", "GetSetColorStateList_ILjava_lang_String_IHandler", ApiSince=31)]
public virtual void SetColorStateList (int viewId, string methodName, int colorResource);
[<Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;I)V", "GetSetColorStateList_ILjava_lang_String_IHandler", ApiSince=31)>]
abstract member SetColorStateList : int * string * int -> unit
override this.SetColorStateList : int * string * int -> unit

Parameters

viewId
Int32

The id of the view on which to call the method.

methodName
String

The name of the method to call.

colorResource
Int32

The resource to resolve and pass as argument to the method.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setColorStateList(int, java.lang.String, int).

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

SetColorStateList(Int32, String, ColorStateList, ColorStateList)

Call a method taking one ColorStateList on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;Landroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V", "GetSetColorStateList_ILjava_lang_String_Landroid_content_res_ColorStateList_Landroid_content_res_ColorStateList_Handler", ApiSince=31)]
public virtual void SetColorStateList (int viewId, string methodName, Android.Content.Res.ColorStateList? notNight, Android.Content.Res.ColorStateList? night);
[<Android.Runtime.Register("setColorStateList", "(ILjava/lang/String;Landroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V", "GetSetColorStateList_ILjava_lang_String_Landroid_content_res_ColorStateList_Landroid_content_res_ColorStateList_Handler", ApiSince=31)>]
abstract member SetColorStateList : int * string * Android.Content.Res.ColorStateList * Android.Content.Res.ColorStateList -> unit
override this.SetColorStateList : int * string * Android.Content.Res.ColorStateList * Android.Content.Res.ColorStateList -> unit

Parameters

viewId
Int32

The id of the view on which to call the method.

methodName
String

The name of the method to call.

notNight
ColorStateList

The value to pass to the method when the view's configuration is set to Configuration#UI_MODE_NIGHT_NO

night
ColorStateList

The value to pass to the method when the view's configuration is set to Configuration#UI_MODE_NIGHT_YES

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setColorStateList(int, java.lang.String, android.content.res.ColorStateList, android.content.res.ColorStateList).

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