语言

TextView.GetTextColors(Context, TypedArray) 方法

定义

返回 TypedArray 中的TextView_textColor属性(如果已设置)或TextView_textAppearance属性中的TextAppearance_textColor(如果未直接设置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 提供的属性。

返回

获取文本颜色操作的结果。

特性

注解

返回 TypedArray 中的TextView_textColor属性(如果已设置)或TextView_textAppearance属性中的TextAppearance_textColor(如果未直接设置TextView_textColor)。

Java文档android.widget.TextView.getTextColors(android.content.Context, android.content.res.TypedArray)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于