Share via


RemoteViews.SetTextColor(Int32, Color) Method

Definition

Equivalent to calling android.widget.TextView#setTextColor(int).

[Android.Runtime.Register("setTextColor", "(II)V", "GetSetTextColor_IIHandler")]
public virtual void SetTextColor (int viewId, Android.Graphics.Color color);
[<Android.Runtime.Register("setTextColor", "(II)V", "GetSetTextColor_IIHandler")>]
abstract member SetTextColor : int * Android.Graphics.Color -> unit
override this.SetTextColor : int * Android.Graphics.Color -> unit

Parameters

viewId
Int32

The id of the view whose text color should change

color
Color

Sets the text color for all the states (normal, selected, focused) to be this color.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setTextColor(int, 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