Freigeben über


TextView.GetTextColor(Context, TypedArray, Int32) Methode

Definition

Gibt die Standardfarbe aus dem attribut "TextView_textColor" aus "AttributeSet" zurück, sofern festgelegt, oder die Standardfarbe aus dem TextAppearance_textColor aus dem attribut TextView_textAppearance, wenn TextView_textColor nicht direkt festgelegt wurde.

[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

Parameter

context
Context
attrs
TypedArray
def
Int32

Gibt zurück

Attribute

Hinweise

Gibt die Standardfarbe aus dem attribut "TextView_textColor" aus "AttributeSet" zurück, sofern festgelegt, oder die Standardfarbe aus dem TextAppearance_textColor aus dem attribut TextView_textAppearance, wenn TextView_textColor nicht direkt festgelegt wurde.

Java-Dokumentation für android.widget.TextView.getTextColor(android.content.Context, android.content.res.TypedArray, int).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die vom Android Open Source-Projekt erstellt und freigegeben werden und gemäß den in der Creative Commons 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: