TextView.GetTextColors(Context, TypedArray) Метод

Определение

Возвращает атрибут TextView_textColor из typedArray, если задан или TextAppearance_textColor из атрибута TextView_textAppearance, если TextView_textColor не задан напрямую.

[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

Параметры

context
Context

Контекст, используемый для доступа к ресурсам и службам приложений.

attrs
TypedArray

Атрибуты, предоставленные из XML.

Возвращаемое значение

Результат операции получения цветов текста.

Атрибуты

Комментарии

Возвращает атрибут TextView_textColor из typedArray, если задан или TextAppearance_textColor из атрибута TextView_textAppearance, если TextView_textColor не задан напрямую.

Java документации по android.widget.TextView.getTextColors(android.content.Context, android.content.res.TypedArray).

Части этой страницы — это изменения на основе работы, созданной и общей Project и используемых в соответствии с условиями, описанными в разделе "".

Применяется к