TextView.GetTextColors(Context, TypedArray) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。