Udostępnij za pośrednictwem


TextView.GetTextColor(Context, TypedArray, Int32) Method

Definition

Returns the default color from the TextView_textColor attribute from the AttributeSet, if set, or the default color from the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.

[Android.Runtime.Register("getTextColor", "(Landroid/content/Context;Landroid/content/res/TypedArray;I)I", "")]
public static int GetTextColor (Android.Content.Context? context, Android.Content.Res.TypedArray? attrs, int def);
[<Android.Runtime.Register("getTextColor", "(Landroid/content/Context;Landroid/content/res/TypedArray;I)I", "")>]
static member GetTextColor : Android.Content.Context * Android.Content.Res.TypedArray * int -> int

Parameters

context
Context
attrs
TypedArray
def
Int32

Returns

Attributes

Remarks

Returns the default color from the TextView_textColor attribute from the AttributeSet, if set, or the default color from the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.

Java documentation for android.widget.TextView.getTextColor(android.content.Context, android.content.res.TypedArray, 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