Freigeben über


TextView.GetTextColors(Context, TypedArray) Method

Definition

Returns the TextView_textColor attribute from the TypedArray, if set, or the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.

[Android.Runtime.Register("getTextColors", "(Landroid/content/Context;Landroid/content/res/TypedArray;)Landroid/content/res/ColorStateList;", "")]
public static Android.Content.Res.ColorStateList? GetTextColors (Android.Content.Context? context, Android.Content.Res.TypedArray? attrs);
[<Android.Runtime.Register("getTextColors", "(Landroid/content/Context;Landroid/content/res/TypedArray;)Landroid/content/res/ColorStateList;", "")>]
static member GetTextColors : Android.Content.Context * Android.Content.Res.TypedArray -> Android.Content.Res.ColorStateList

Parameters

context
Context
attrs
TypedArray

Returns

Attributes

Remarks

Returns the TextView_textColor attribute from the TypedArray, if set, or the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.

Java documentation for android.widget.TextView.getTextColors(android.content.Context, android.content.res.TypedArray).

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